16.11.2014, 02:52
Solo un ejemplo.
pawn Код:
//la variable debe ser con MAX_PLAYERS
new Loco[MAX_PLAYERS];
/soy loco //usa el procesador de comandos que uses.
{
if(IsPlayerConnected(playerid))
{
Loco[playerid] = 1;
}
return true;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(Loco[playerid])
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid, x , y , z ) ;
}
return 1;
}