Object when Person died
#1

Hello, how can i make that when a person die that he leave's an object behind him?
Reply
#2

Create the object here
Reply
#3

Can you give me an short example?
Reply
#4

Sure:

pawn Код:
new deathObj[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    deathObject[playerid] = CreateObject...
    return 1;
}
EDIT: Tested it, it should work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)