26.11.2009, 17:16
Hey all,
i have a question.
I create an OnDialogResponse for all victims who are killed by the teammates. All things work.
ID 1 Kills ID 0 -> the gui is open at id 0. than the id 0 want to punish the killer (id 1) (-$5000) the killer, but he took the money himself.
ID 0 Kills ID 1 -> the gui is open at id 1. than the id 0 want to punish the killer (id 0) (-$5000) the killer. That works.
LoL?
...
i have a question.
I create an OnDialogResponse for all victims who are killed by the teammates. All things work.
ID 1 Kills ID 0 -> the gui is open at id 0. than the id 0 want to punish the killer (id 1) (-$5000) the killer, but he took the money himself.
ID 0 Kills ID 1 -> the gui is open at id 1. than the id 0 want to punish the killer (id 0) (-$5000) the killer. That works.
LoL?
Код:
if(dialogid == Bestrafen) { new killerid; new Killername[MAX_PLAYERS],string[256],string1[256]; GetPlayerName(killerid, Killername, sizeof(Killername)); if(response { if(listitem == 0) { GivePlayerMoney(killerid, -5000); } return 1;