03.03.2009, 18:22
Here you are:
Код:
if(weapon == sexshop) { switch(row) { case 0: { if(GetPlayerMoney(playerid) >= 1500) { GivePlayerMoney(playerid, -1500); GivePlayerWeapon(playerid, 24, 100); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Desert Eagle-t."); ShowMenuForPlayer(sexshop,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(sexshop, playerid); TogglePlayerControllable(playerid, 1); } } case 1: { if(GetPlayerMoney(playerid) >= 2500) { GivePlayerMoney(playerid, -2500); GivePlayerWeapon(playerid, 26, 50); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy SawnOff-ot."); ShowMenuForPlayer(sexshop,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(sexshop, playerid); TogglePlayerControllable(playerid, 1); } } } return 1; }