12.02.2012, 03:25
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
new
Float:posX,
Float:posY,
Float:posZ,
Float:angle
;
GetPlayerPos(playerid, posX, posY, posZ);
GetPlayerFacingAngle(playerid, angle);
new
objectid = CreateObject(IDDOOBJETO, posX, posY, posZ, 0, 0, angle)
;
SetTimerEx("Destroy", 40000, 0, "i" objectid);
}
public Destroy(objectid) {
DestroyObject(objectid);
}