08-07-2011, 19:24
(This post was last modified: 08-07-2011, 20:27 by Tomsen1410.)
awesome ItsMods, i want u to give me your best Modders to help me with this thread!!!
So my problem:
The Variable (self.jumper_inPrison) is always false. Wayne if a paladin kills me, or i kill myself.
Ok, example:
_rank.gsc:
_callbacksetup.gsc:
So, u awesome Modders: Why is it not working?
So my problem:
The Variable (self.jumper_inPrison) is always false. Wayne if a paladin kills me, or i kill myself.
Ok, example:
_rank.gsc:
Code:
checkTeam()
{
self endon("disconnect");
self waittill("joined_team");
if(self.team == "axis")
{self.isPaladin = true; self.isJumper = false; self thread doPaladin();}
else
{self.isJumper = true; self.isPaladin = false; self thread doJumper();}
Code:
test()
{
self endon("disconnect");
for(;;)
{
if(self.isJumper && self.jumper_inPrison)
{
if(self.jumper_inPrison)
{self maps\mp\gametypes\_hud_message::hintMessage("PRISON: YES", 7);}
else
{self maps\mp\gametypes\_hud_message::hintMessage("PRISON: NO", 7);}
}
wait 0.01;
}
}
_callbacksetup.gsc:
Code:
/*================
Called when a player has been killed.
self is the player that was killed.
================*/
CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration)
{
self endon("disconnect");
if(eAttacker.isPaladin && self.isJumper)
{
self.jumper_inPrison = true;
}
[[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
}
So, u awesome Modders: Why is it not working?