09.10.2013, 01:54
Tente este cуdigo
OnPlayerDeath
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
gPM[playerid] = 1;
kit[playerid] = 0;
SendDeathMessage(killerid, playerid, reason);
trabalhandoPM[playerid] = 0;
trabalhandoRGT[playerid] = 0;
trabalhandoTRF[playerid] = 0;
return 1;
}
OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pTRF] < 0)
{
if(gPM[playerid])
{
SetPlayerPos(playerid,2030.2041, -1418.1321, 16.9922); // Hospital LS
gPM[playerid] = 0;
}
}
return 1;
}