Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:buygun(playerid, params[])
- {
- if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa introduci pin-ul mai intai.(/pin)");
- if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}You don't have gun license.");
- if(IsPlayerInRangeOfPoint(playerid, 100.0, 313.7856,-134.1924,1004.0625))
- {
- if(GetPlayerInterior(playerid) == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in a store.");
- 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");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in a Gun shop.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement