06-03-2012, 13:42
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.
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", 2 , "nuke") )
{
self setPlayerData( "killstreaks", 2, "uav" );
}
else
{
self notify ("off");
}
wait 0.2;
}
}