Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_KUPIGUN)
- {
- if(!response) return SCM(playerid, -1, "SERVER: Odustao si od kupovine oruzija");
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerMoney(playerid, -2000);
- GivePlayerWeapon(playerid, 24, 150);
- SCM(playerid, -1, "SERVER: Uspeno si kupio Deagle!");
- }
- case 1:
- {
- GivePlayerMoney(playerid, -3500);
- GivePlayerWeapon(playerid, 30, 150);
- SCM(playerid, -1, "SERVER: Uspeno si kupio AK-47!");
- }
- case 2:
- {
- GivePlayerMoney(playerid, -3500);
- GivePlayerWeapon(playerid, 31, 150);
- SCM(playerid, -1, "SERVER: Uspeno si kupio M4!");
- }
- }
- }
- }
- return 1;
- }
- //=============================//
- CMD:kupigun(playerid,params[])
- {
- ShowPlayerDialog(playerid, DIALOG_KUPIGUN, DIALOG_STYLE_LIST,"Kupovina oruzije","DEAGLE\nAK-47\nM4","KUPI","");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment