ItsMods

Full Version: Nuke Replacing with UAV
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am tryingto make a code what is replacing the Nuke killstreak with an UAV.
Now it is repalcing, but for everyone on the server, not just the Nuke owner get UAV.

PHP Code:
NoNuke()
{
self endon("disconnect");
self endon("death");
self endon("off");

    for(;;)
    {
        if (
self getPlayerData("killstreaks""nuke") )
        {
            
self setPlayerData"killstreaks"2"uav" );    
        }
        
        else
        {
            
self notify ("off");
        }

    
wait 0.2;
    }

Try
Code:
if (self getPlayerData("killstreaks", 2)=="nuke"  )

But I actually don't like mods which modify my killstreak playerdata. Why don't you just modify _killstreaks.gsc or _nuke.gsc? Maybe take a look at this: http://www.itsmods.com/forum/Thread-Rele...reaks.html
(06-03-2012, 14:17)zxz0O0 Wrote: [ -> ]Try
Code:
if (self getPlayerData("killstreaks", 2)=="nuke"  )

But I actually don't like mods which modify my killstreak playerdata. Why don't you just modify _killstreaks.gsc or _nuke.gsc? Maybe take a look at this: http://www.itsmods.com/forum/Thread-Rele...reaks.html

Hmm, will try that, thanks.