14.02.2015, 18:03
Код:
if(Duel[killerid]==1 && Duel[playerid]==1) { Duel[killerid]=0; Duel[playerid]=0; format(Message, 128, "SERVER : %s have win the duel challenge against %s and got %d",GetName(killerid),GetName(playerid),Amount[playerid]); SCMToAll(COLOR_YELLOW,Message); GivePlayerCash(killerid, Amount[playerid]); GivePlayerCash(playerid, GetPlayerMoney(playerid)-Amount[playerid]); } I'm doing this OnPlayerDeath But it not giving that amount. why ?