12.08.2018, 13:21
PHP код:
new bool:Morto[MAX_PLAYERS],
bool:Spawned[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
Morto[playerid] = true;
Spawned[playerid] = false;
return 1;
}
public OnPlayerSpawn(playerid)
{
Morto[playerid] = false;
Spawned[playerid] = true;
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(Morto[playerid] && !Spawned[playerid]) return SpawnPlayer(playerid);
return 1;
}
Acredito que necessite de teste, pois nгo sei oq poderia rolar quando conectar.