[Dъvida] Perder Procurado Em certo Local.
#9

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)