Код:
144: public OnPlayerDeath(playerid, killerid, reason)
145: {
146: gPlayerHasCitySelected[playerid] = 0;
147: new playercash;
148: new giveaway
149:
150: // if they ever return to class selection make them city
151: // select again first
152:
153:
154: if(killerid == INVALID_PLAYER_ID) {GivePlayerMoney(playerid, -10000);
155: } else {
156: giveaway = playercash / 2;
157: playercash = GetPlayerMoney(playerid);
158: if(playercash > 0) {
159: GivePlayerMoney(killerid, playercash);
160: GivePlayerMoney(playerid, giveaway);
161: } else {GivePlayerMoney(playerid, 150000);}
162: }
163: return 1;
164:}