Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. CMD:buygun(playerid, params[])
  2. {
  3. if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa introduci pin-ul mai intai.(/pin)");
  4. if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}You don't have gun license.");
  5. if(IsPlayerInRangeOfPoint(playerid, 100.0, 313.7856,-134.1924,1004.0625))
  6. {
  7. if(GetPlayerInterior(playerid) == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in a store.");
  8. ShowPlayerDialog(playerid,Dialog_gunshop,DIALOG_STYLE_LIST,"Select:","Baseball bat($1,000)\nSD Pistol($2,000)\nDesert eagle($3,000)\nShotgun($4,200)\nMP5($4,600)\nAK47($7,000)\nM4($7,000)","Select","Cancel");
  9. return 1;
  10. }
  11. else
  12. {
  13. SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in a Gun shop.");
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement