Use a tuning system! Easy to increase ..
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: [PP]SilenT on Jan 25, 2016, 09:08 AMI Have one Option To Make This !
if ( cmd == "setwep" )
{
if ( GetLevel( player ) >= 5 )
{
if ( text )
{
local plr = FindPlayer(GetTok(text, " ", 1));
local wep = GetTok( text, " ", 2 );
local ammo = GetTok( text, " ", 3 );
if ((GetLevel( player ) !=10 && GetWeaponID(wep) == 30)) MessagePlayer( "You need to be admin level 10 to spawn that weapon.", player );
else if ((GetLevel( player ) !=10 && GetWeaponID(wep) == 31)) MessagePlayer( "You need to be admin level 10 to spawn that weapon.", player );
else if ((GetLevel( player ) !=10 && GetWeaponID(wep) == 33)) MessagePlayer( "You need to be admin level 10 to spawn that weapon.", player );
else
{
plr.SetWeapon( GetWeaponID( wep ), ammo.tointeger());
MessagePlayer( "Admin "+ player.Name + " gave you a " + GetWeaponName( GetWeaponID( wep ) ) +". Ammo: " + ammo + ".",plr );
MessagePlayer( "Giving " + plr.Name + " a " + GetWeaponName( GetWeaponID( wep ) ) +". Ammo: " + ammo + ".",player );
}
}
else MessagePlayer( "USAGE: /setwep [ Nick/ID ] [ Weapon Name ] [ Ammo ]",player );
}
else MessagePlayer ( "Error - You need to be at least level 6 to use that command.", player );
}