ко всем new
Код
new BugTicks[MAX_PLAYERS];
Сюда ваши кординаты куда ип игрока при спасений
Код
new Float:Coords[3] =
{
2111.9983,
186.0756,
1.3306
};
В public OnPlayerConnect(playerid)
Код
BugTicks [playerid]= 0;
В public OnPlayerUpdate(playerid)
Код
if(!IsPlayerInRangeOfPoint(playerid,20000.0,0.0,0.0,0.0))
{
ShowPlayerDialog(playerid,-1,0," "," "," "," ");
ShowPlayerDialog(playerid,5719,DIALOG_STYLE_MSGBOX,"{FFFFFF}Ура!!!","{FFFFFF}Читеры попытался закинуть вас в загрузку, но мы вас спасли!!!","Ок","Ок");
SetPlayerPos(playerid,Coords[0],Coords[1],Coords[2]);
BugTicks[playerid]++;
if(BugTicks [playerid]> 500) return SpawnPlayer(playerid);
}
else BugTicks [playerid]= 0;