04.03.2014, 23:55
at the top of script
onplayerspawn
public EndAntiSpawnKill(playerid)
pawn Код:
new Text3D:SpawnPText[MAX_PLAYERS];
pawn Код:
SetPlayerHealth(playerid, 10000.0);
SetTimerEx("EndAntiSpawnKill", 5000, false, "i", playerid);
SendClientMessage(playerid, -1,""chat""COL_RED" Spawn Protection {FF0000}(5 Seconds)");
SpawnPText[playerid] = CreateDynamic3DTextLabel( "Spawn Protected", 0xFF000000, 0.0, 0.0, 0.0, 10.0, playerid);//Creating the 3dtext
pawn Код:
DestroyDynamic3DTextLabel(SpawnPText[playerid]);//delete it
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,-1,""chat" Spawn Protection Off");
return 1;