View Single Post
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 08-17-2015 , 08:26   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #421

Quote:
Originally Posted by ZASTRELIS View Post
Try this for default values
Code:
Client_GiveWeaponAndAmmo(client, "weapon_deagle", false, -1, 7, -1, 35);
or this for test
Code:
Client_GiveWeaponAndAmmo(client, "weapon_deagle", false, -1, 1, -1, 7);

p.s. i think u don't fully understand how it works..
Both of those give me a full deagle.

PHP Code:
public OnPluginStart() 
{
    
RegAdminCmd("sm_givedeagle"GiveWeaponADMFLAG_GENERIC);
    
RegAdminCmd("sm_givedeagletest"GiveWeaponTestADMFLAG_GENERIC);
}    

public 
Action:GiveWeapon(clientargs)
{
    
Client_GiveWeaponAndAmmo(client"weapon_deagle"false, -17, -135);
}

public 
Action:GiveWeaponTest(clientargs)
{
    
Client_GiveWeaponAndAmmo(client"weapon_deagle"false, -11, -17);    

p.s. i'm sure I don't..
Addicted. is offline