//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;
}
//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);
if(killerid != INVALID_PLAYER_ID) format(StR,sizeof(StR),"{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}%s",PlayerName(playerid),PlayerName(killerid));
else format(StR,sizeof(StR),"{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}Desconhecido",PlayerName(playerid));
Label = Create3DTextLabel(StR, 0x008080FF,Pos[0],Pos[1],Pos[2],40.0, 0, 0);
SetTimerEx("Final",minutos(3), false, "i", playerid);
return 1;
}
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;
}
Use:
PHP код:
|
format(StR, sizeof(StR), "{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}%s", PlayerName(playerid), (killerid != INVALID_PLAYER_ID) ? (PlayerName(killerid)) : ("Desconhecido"));
nao deu fico do mesmo jeito tipo se eu me mato no carro fica assassino: {FFF
|
if(killerid != INVALID_PLAYER_ID) format(StR,sizeof(StR),"{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}%s",PlayerName(playerid),PlayerName(killerid));
//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);
if(killerid != INVALID_PLAYER_ID) format(StR,sizeof(StR),"{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}%s",PlayerName(playerid),PlayerName(killerid));
else format(StR,sizeof(StR),"{BEBEBE}Corpo de {FFFFFF}%s\n{BEBEBE}Assasino: {FFFFFF}Desconhecido",PlayerName(playerid));
Label = Create3DTextLabel(StR, 0x008080FF,Pos[0],Pos[1],Pos[2],40.0, 0, 0);
SetTimerEx("Final",minutos(3), false, "i", playerid);
return 1;
}