Jiro
Modder
- Messages
- 223
- Reaction score
- 71
- Points
- 828
How do you give yourself the gun?
self add_option( "Assault Rifles", "smg_standard", &func_giveWeapon, "smg_standard" );
Change smg_standard to the weapon that you want.
Code:
//Example
self func_giveWeapon("smg_standard");
function func_giveWeapon(weapon)
{
self TakeWeapon(self GetCurrentWeapon());
weapon = getWeapon(weapon);
self GiveWeapon(weapon);
self GiveMaxAmmo(weapon);
self SwitchToWeapon(weapon);
self iprintln(weapon+" ^2Given");
}
Last edited by a moderator: