29.12.2009, 01:31
pawn Код:
public InAreaChecker()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInArea(i, 443.7593, 373.692, 2475.709, 2405.642))
{
SetPlayerHealth(i, 9999999);
SetPlayerChatBubble(i, "is in safe zone", 0xFFFF00AA, 100.0, 10000);
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~w~You are Currently in ~g~SAFE Zone~w~.",10000,5);
}
else
{
SetPlayerHealth(i, 100);
GameTextForPlayer(i, " ",3000,5);
SetPlayerChatBubble(i, " ", 0xFF0000FF, 100.0, 10000);
}
}
return 1;
}