08.08.2012, 06:53
pawn Код:
/*ontop */
new Object[MAX_PLAYERS];
new label[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x,Float:y,Float:z,string[256],Name[MAX_PLAYER_NAME];
GetPlayerPos(playerid, x,y,z);
GetPlayerName(playerid, Name,sizeof(Name));
format(string, sizeof(string),"Body of %s",Name);
label[playerid] = Create3DTextLabel(string, 0xFF0000FF,x,y,z+3,40.0,0,0);
Object[playerid] = CreateObject(3907, x,y,z+1, 0.0, 0.0, 0.0,100.0);
SetTimer("DestroyObject",5000,0);
return 1;
}
forward DestroyObject(playerid);
public DestroyObject(playerid)
{
DestroyObject(object[playerid]);
Delete3DTextLabel(label[playerid]);
return 1;
}
