28.01.2018, 21:23
(
Последний раз редактировалось aoky; 28.01.2018 в 21:55.
)
PHP код:
switch(Account[playerid][DuelType])
{
case 0:
{
format(duelmsg, sizeof(duelmsg), "DUEL: %s has won the duel against %s at %s! (Bet: %d)", GetName(killerid), GetName(playerid), duelMapNameList[Account[playerid][Map]], Account[Account[playerid][DuelInviter]][Bet]);
GivePlayerMoneyEx(killerid, Account[Account[playerid][DuelInviter]][Bet] * 2);
SendClientMessageToAll(pCOLOR_LIGHTBLUE, duelmsg);
CompleteDuel(playerid, killerid);
But, if the person who was invited kills the person who sent the duel nothing is called.
Both of their variables are the same.