OnDialogResponse killerid
#5

Quote:
Originally Posted by gtakillerIV
Посмотреть сообщение
Store it into an integer.

Below your includes add:

pawn Код:
new killeridstored;
;

Now under OnPlayerDeath add:

pawn Код:
killeridstored = killerid
;

Now you can use killeridstored.
Not exactly, I mean, you can use that variable... However, someone might get another players killerid. That's where you would use an array with MAX_PLAYERS as the size.

pawn Код:
new LastKiller[MAX_PLAYERS];
then
pawn Код:
LastKiller[playerid]=killerid;
Of course, you would need to reset this on the players log out for example

EDIT: ah, was a little late :P
Reply


Messages In This Thread
OnDialogResponse killerid - by The.Game - 20.03.2013, 11:18
Re: OnDialogResponse killerid - by PaulDinam - 20.03.2013, 11:33
Re: OnDialogResponse killerid - by gtakillerIV - 20.03.2013, 11:37
Re: OnDialogResponse killerid - by LarzI - 20.03.2013, 11:38
Re: OnDialogResponse killerid - by [ABK]Antonio - 20.03.2013, 11:41
Re: OnDialogResponse killerid - by The.Game - 20.03.2013, 11:42
Re: OnDialogResponse killerid - by [ABK]Antonio - 20.03.2013, 11:44
Re: OnDialogResponse killerid - by LarzI - 20.03.2013, 11:44
Re: OnDialogResponse killerid - by The.Game - 20.03.2013, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)