Death System
#3

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;
}
Hope it will work
Reply


Messages In This Thread
Death System - by sgtjones12 - 08.08.2012, 06:08
Re: Death System - by Jstylezzz - 08.08.2012, 06:32
Re: Death System - by Jarnu - 08.08.2012, 06:53
Re: Death System - by sgtjones12 - 08.08.2012, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)