ItsMods
Weapon Snippet/ Tutorial?? - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Weapon Snippet/ Tutorial?? (/Thread-Weapon-Snippet-Tutorial.html)



Weapon Snippet/ Tutorial?? - Boomshay - 07-02-2011

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.


RE: Weapon Snippet/ Tutorial?? - AZUMIKKEL - 07-02-2011

Tips:

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

self takeWeapon(self getCurrentWeapon());

if(??)


RE: Weapon Snippet/ Tutorial?? - Boomshay - 07-02-2011

Hmmm. So could you show an example of taking away a stakeout.


RE: Weapon Snippet/ Tutorial?? - black_iceee - 07-02-2011

(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?


RE: Weapon Snippet/ Tutorial?? - koil - 07-02-2011

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.


RE: Weapon Snippet/ Tutorial?? - Boomshay - 07-02-2011

Ok sweet. Thanks guys!!!