09.10.2013, 00:46
OBS: Ja que o amigo postou o codigo completo, nada mais justo que mandar certo pro lek.
Global:
Global:
pawn Код:
static
Float:UPDeath[MAX_PLAYERS][3],
bool:SpawnD[MAX_PLAYERS]
;
pawn Код:
public OnPlayerDeath(playerid, killerid, reason){
GetPlayerPos(playerid, UPDeath[playerid][0], UPDeath[playerid][1], UPDeath[playerid][2]);
SpawnD[playerid] = false;
return true;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
if(SpawnD[playerid] == false)
{
SetPlayerPos(playerid, UPDeath[playerid][0], UPDeath[playerid][1], UPDeath[playerid][2]);
SpawnD[playerid] = true;
}
return true;
}
pawn Код:
public OnPlayerConnect(playerid)
{
SpawnD[playerid] = false;
return true;
}