Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Callbacksetup Not Working
#1
Sad 
awesome ItsMods, i want u to give me your best Modders to help me with this thread!!!
Tongue

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?
Reply

#2
It should work..

Are you sure you have correctly included the callback setup gsc in your mod.csv?
[Image: MaEIQ.png]
Reply

#3
(08-07-2011, 20:26)Pozzuh Wrote: It should work..

Are you sure you have correctly included the callback setup gsc in your mod.csv?

oops : P

aaah, i always forget this fucking mod.csv thingy^^

ok what i have to write in? script,...?
Reply

#4
You don't have to add it to the mod.csv
Reply

#5
lmao

rawfile,maps/mp/gametypes/_callbacksetup.gsc
[Image: MaEIQ.png]
Reply

#6
if you add no gsc files to the .ff/.iwd, you dont have to add any
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#7
Lol, when i kill myself now, the var will be true, too...

AAAH
Reply

#8
Add if(smeansofdeath != "mod_suicide") ?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Plugins are not working clemi555 7 4,835 11-03-2013, 10:55
Last Post: d0h!
  [Release] Working Aimbot The Clay Man 17 20,403 10-21-2013, 15:10
Last Post: zurasaur
  How to get models working? Erik The Born 2 3,058 04-28-2013, 08:19
Last Post: Erik The Born
  [d3d9.dll] MW3 Server Has Stopped Working.. bertancakici 4 6,509 11-16-2012, 01:09
Last Post: JariZ
Sad Help KillifBelow Not Working DidUknowiPwn 4 3,188 10-29-2012, 10:22
Last Post: RaZ
  the big show-what-you're-working-on thread JariZ 183 77,313 09-07-2012, 21:32
Last Post: Nekochan
  server stop working s.j-rez 9 5,255 08-26-2012, 06:23
Last Post: s.j-rez
  stop working eror{please help me:((} s.j-rez 0 1,921 08-25-2012, 12:47
Last Post: s.j-rez
Question Help what dvars can be used and working, in forceclientdvars? founderlj 1 2,256 08-20-2012, 08:21
Last Post: d0h!
Rainbow [TIP] How to get maps working. Nekochan 6 4,527 06-26-2012, 11:31
Last Post: JariZ

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.