Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ValidWep(Weapons)
- {
- switch(Weapons)
- {
- case 33: return false;
- case 13: return false;
- case 14: return false;
- case 15: return false;
- case 30: return false;
- default: return true;
- }
- }
- function GiveWeapons(player, vargv)
- {
- local Weapons = "", i;
- for(i=0;i<vargv.len();i++)
- {
- if(GetWeaponID( vargv[ i ] ) == 33 ) Weapons = "Unknown";//MessagePlayer(">> Error: Some weapons are disabled",player);
- else
- {
- player.SetWeapon( GetWepID( vargv[ i ] ), 9999 );
- if( Weapons == "" ) Weapons = GetWepName( GetWepID( vargv[ i ] ) ).tostring();
- else Weapons = Weapons + " , " + GetWepName( GetWepID( vargv[ i ] ) ).tostring();
- }
- }
- MessagePlayer("[#FAF600]>> Giving you: " + Weapons + ".", player);
- Announce("~y~Giving you: "+Weapons+".", player,1);
- }
- function GetWepID(id) return GetWeaponID(id.tolower());
- function GetWepName(id) return GetWeaponName(id.tointeger());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement