25.04.2011, 09:35
Heey guys
If i die by a shark the clientmessage is spamming.
How can i dont let it spam?
Thanks admigo
If i die by a shark the clientmessage is spamming.
How can i dont let it spam?
Код:
public OnPlayerUpdate(playerid) { new Float:x,Float:y,Float:z; GetVehiclePos(link, x, y, z); new Float:health; GetPlayerHealth(playerid,health); if(IsPlayerInRangeOfPoint(playerid, 9.3, x, y, z)) { { SetPlayerHealth(playerid, 0); sharkkill[playerid]=1; } if(sharkkill[playerid]==1) { SendClientMessage(playerid,COLOR_RED,"You are killed by a Shark!"); sharkkill[playerid]=0; } } return 1; }