04.02.2010, 17:01
Код:
public OnPlayerEnterCheckpoint(playerid) { for(new j=0;j<AREAS;j++) { new string[256]; lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid); if(lastcp[playerid] == CheckPointZones[j]) { format(string, sizeof(string), "Entrou na CP %s", Name[j]); SendClientMessageToAll(0xAAAAAAAA, string); } } return 1; } public OnPlayerLeaveCheckpoint(playerid) { for(new j=0;j<AREAS;j++) { new string[256]; lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid); if(lastcp[playerid] == CheckPointZones[j]) { format(string, sizeof(string), "Saiu da CP %s", Name[j]); SendClientMessageToAll(0xAAAAAAAA, string); } } return 1; }