17.02.2010, 10:36
Im trying to make a gun shop menu but im not sure what to do for them to get the gun and for their money to be taken away so can some help?
This is the code i have and can u correct it please
This is the code i have and can u correct it please
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == gunmenu) { switch(row) { case 0: //M4 { SendClientMessage(playerid, 0xFFFFFFFF, "You Bought an M4"); } case 1: //AK47 { SendClientMessage(playerid, 0xFFFFFFFF, "You Bought a AK47"); } case 2: //Sniper Rifle { SendClientMessage(playerid, 0xFFFFFFFF, "You Bought a Sniper Rifle"); } case 3: //Sawn-Off Shotgun { SendClientMessage(playerid, 0xFFFFFFFF, "You Bought a Sawn-Off Shotgun"); } case 4: //Combat Shotgun { SendClientMessage(playerid, 0xFFFFFFFF, "You Bought a Combat Shotgun"); } case 5: //Nuke <- Gives player a right or something to do a /nuke command. { SendClientMessage(playerid, 0xFFFFFFFF, "You Bought a Nuke"); } } return 1; }