Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [Tkiller] on February 28, 2012, 10:54:13 am
-
I make anti spawn kill but iam failed,that's why i post it here so one can help me...
[pawn]SetTimer("AntiSpawnkill",5000,0);[/pawn]
public onplayerspawn i put this
[pawn] }
else SetPlayerMoney( playerid, 0 );
SetPlayerHealth(playerid, 9999);
SendClientMessage(playerid, RED, "[INFO]:You have 5 seconds of Anti-Spawnkill protection");
SetTimer("AntiSpawnkill",5000,0);
return 1;
}[/pawn]
in function i put that to reset player health to 100 after time over
[pawn]public AntiSpawnkill(playerid)
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(playerid, RED, "[INFO]:Anti-Spawnkill protection over, you are on your own now");
return 1;
}[/pawn]
So please check it,or i want that on spawn kill the player is drowned so what i do....
Help...
-
You can't set timer to a player!!