Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #include zcmd
- #include sscanf2
- CMD:giveweapon(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage (playerid,0xFF0000AA,"you are not admin");
- new id, gun, ammo;
- if(sscanf(params,"uii", id, gun, ammo)) return SendClientMessage(playerid, -1,"USAGE: /GiveWeapon [ID] [WeaponID] [ammo]");
- if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,0xFF0000FF,"ERROR: Player is not connected");
- if(gun > 47 || gun < 1) return SendClientMessage(playerid, -1,"GUN ID'S: 1 - 47");
- if(ammo > 2000 || ammo < 1) return SendClientMessage(playerid, -1,"Ammo: 1 - 2000");
- GivePlayerWeapon(id, gun, ammo);
- return 1;
- }
- CMD:phoneanim(playerid,params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement