24.06.2018, 23:08
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(pmorto[playerid])return true;
OnPlayerDeathEx(playerid, killerid, reason);
TextDrawShowForPlayer(playerid, textmorte[0]);
TextDrawShowForPlayer(playerid, textmorte[1]);
JoinedHay[playerid] = 0;
//CORPO DO PLAYER CAIDO NO CHAO
Skin = GetPlayerSkin(playerid);
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
Actor = CreateActor(Skin, Pos[0],Pos[1],Pos[2],Pos[3]);
ApplyActorAnimation(Actor, "PED", "KO_shot_stom",4.1,0,1,1,1,1);
format(StR,sizeof(StR),"{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}%s",PlayerName(playerid),PlayerName(killerid));
Label = Create3DTextLabel(StR, 0x008080FF,Pos[0],Pos[1],Pos[2],40.0, 0, 0);
SetTimerEx("Final",minutos(3), false, "i", playerid);
return 1;
}