07.05.2012, 23:06
sim,
Код:
# include <cpstream> new Level[MAX_PLAYERS]; forward LevelPerder(playerid);
Код:
OnGameModeInit() { cp1 = CPS_AddCheckpoint(X,Y,Z,2.0,80); return 1; }
Код:
public OnPlayerEnterCheckpoint(playerid) { Level[playerid] = SetTimerEx("LevelPerder",30000,true,"i",playerid); return 1; }
Код:
public LevelPerder(playerid) { if(GetPlayerWantedLevel(playerid) == 0) { KillTimer(Level[playerid]); return 1; } else { SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) - 1); } return 1; }