ItsMods

Full Version: Weapon Snippet/ Tutorial??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im trying to disable certain weapons in my mod??? Can someone help me with a tutorial, I would like to learn how to do it myself.
Tips:

Code:
for(;;)
{
// place looped stuff here
wait 0.05;
}

self takeWeapon(self getCurrentWeapon());

if(??)
Hmmm. So could you show an example of taking away a stakeout.
(07-02-2011, 00:56)Boomshay Wrote: [ -> ]Hmmm. So could you show an example of taking away a stakeout.

if(self getcurrentweapon("stakeout_mp" || "stakeout_grip_mp"))
{
self takecurrentweapon();
}

not sure but something like this?
if ( self HasWeapon ("kiparis_mp") )
{
self takeweapon ("kiparis_mp");

self GiveWeapon ("ak74u_sp");
self switchToWeapon ("ak74u_sp");
}

if you have the banned gun, it swaps for a 74u.
Ok sweet. Thanks guys!!!