Body Stays in until...
#1

Aye i want to ask a question is there possible to do that when someone got killed they dead body stays until medic picks them up or any person [In RP] and than find out how he got killed?
Reply
#2

The best way to do this is to use SpawnPlayer(playerid), ApplyAnimation(playerid, animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5) and TogglePlayerControllable(playerid, toggle) (set to 0).
Reply
#3

So they will stay? but what i mean is that they got killed but they dead body stays but they respawn?

and someone need to do /takebody than /deletebody maybe
Reply
#4

Unless you can somehow stream bots, there's no exact way to do what you're asking. I mean you could leave an object of a corpse behind but it looks like someone ran it over a few times.
Reply
#5

Hmmm...
pawn Код:
new Float:x[MAX_PLAYERS], Float:y[MAX_PLAYERS],Float:z[MAX_PLAYERS],bool:dead[MAX_PLAYERS];
OnPlayerDeath:
pawn Код:
GetPlayerPos(playerid,x[playerid],y[playerid],z[playerid]);
OnPlayerSpawn:

pawn Код:
SetPlayerPos(playerid,x[playerid],y[playerid],z[playerid]);
ApplyAnimation(playerid,"...","...",4.1,1,1,1,1,1); // the animation when the player is dead...
TogglePlayerControllable(playerid,0);
dead[playerid] = true;
EDIT: onplayercommand
pawn Код:
if(strcmp(cmd, "/heal", true) == 0)
{
if(gTeam[playerid] != TEAM_MEDIC) return SendClientMessage(playerid,0xff0000AA,"You cant heal hem");
for(new i;i<MAX_PLAYERS;i++)
{
new Float:x2,Float:y2,Float:z2;
GetPlayerPos(i,x2,y2,z2);
if(IsPlayerInRageOfPoint(playerid,x2,y2,z2))
{
TogglePlayerControllable(playerid,1);
dead[playerid] = false;
ClearAnimations(playerid);
return 1;
}
}
return SendClientMessage(playerid,0xff0000AA,"There is nobody in your area");
}
OnPlayerdisconnect:
pawn Код:
dead[playerid] = false;
Reply
#6

And where should i put it any idea?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)