Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:equip(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFaction] == 2) // EMS
- {
- if(PlayerToPoint(2.5,playerid, PlayerToPoint(10.0,playerid,1156.7582,-1329.1193,1101.0859))
- {
- ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Echipare", "Extinctor\nLopata\nSpray", "Echipare", "Cancel");
- return 1;
- }
- }
- }
- return 1;
- }
- //dialog
- if(dialogid == 113)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 42, 350); // Fire extinguisher
- ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Equipment Locker", "Fire Extinguisher\nShovel\nSpray", "Equip", "Cancel");
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 6, 1); // Shovel
- ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Equipment Locker", "Fire Extinguisher\nShovel\nSpray", "Equip", "Cancel");
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 41, 350); // Spray
- ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Equipment Locker", "Fire Extinguisher\nShovel\nSpray", "Equip","Cancel");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment