24.09.2018, 16:32
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
if(!IsPlayerNPC(playerid))
{
new name[24], kname[30], string[64];
new gunname[32], playername[MAX_PLAYER_NAME + 1], killername[MAX_PLAYER_NAME + 1];
GetWeaponName(reason, gunname, sizeof(gunname));
GetPlayerName(playerid, name, 24);
GetPlayerName(killerid, kname, 30);
format(string, sizeof(string), "%s has wasted %s using a %s.", killername, playername, gunname);
SendMessageToAllAdmins(string, -1);
GetPlayerPos(playerid,Float:x,Float:y,Float:z);
Deathactor = CreateActor("%s", "%s", "%s", "%s"), pSkin(playerid), Float:x, Float:y, Float:z);
ApplyActorAnimation(Deathactor, "WUZI","CS_Dead_Guy",4.1,1,1,1,1,0,1);
}
}
if yes, how can i remove the actor after 5 seconds ?(5000 ms)