SA-MP Forums Archive
[FilterScript] Weapon Cmds [Includes Every Weapon] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapon Cmds [Includes Every Weapon] (/showthread.php?tid=165309)



Weapon Cmds [Includes Every Weapon] - Shockey - 04.08.2010

Ok here us a cmd for every weapon

Plz don't tease me Im only a bugginer but helping people out and im only 13
so plz don't criticize

Код:
if (strcmp("/brassknuckles", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 1, 999);*
return 1;
}
if (strcmp("/golfclub", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 2, 999);*
return 1;
}
if (strcmp("/nitestick", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 3, 999);*
return 1;
}
if (strcmp("/knife", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 4, 999);*
return 1;
}
if (strcmp("/baseballclub", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 5, 999);*
return 1;
}
if (strcmp("/shovel", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 6, 999);*
return 1;
}
if (strcmp("/poolcue", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 7, 999);*
return 1;
}
if (strcmp("/katana", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 8, 999);*
return 1;
}
if (strcmp("/chainsaw", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 9, 999);*
return 1;
}
if (strcmp("/purpledildo, cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 10, 999);*
return 1;
}
if (strcmp("/smallwhitevibrator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 11, 999);*
return 1;
}
if (strcmp("/largewhitevibrator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 12, 999);*
return 1;
}
if (strcmp("/silvervibrator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 13, 999);*
return 1;
}
if (strcmp("/flowers", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 14, 999);*
return 1;
}
if (strcmp("/cane", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 15, 999);*
return 1;
}
if (strcmp("/grenade", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 16, 999);*
return 1;
}
if (strcmp("/teargas", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 17, 999);*
return 1;
}
if (strcmp("/molotovcocktail", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 18, 999);*
return 1;
}
if (strcmp("/9mm", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 22, 999);*
return 1;
}
if (strcmp("/silenced9mm", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 23, 999);*
return 1;
}
if (strcmp("/deserteagle", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 24, 999);*
return 1;
}
if (strcmp("/shotgun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 25 999);*
return 1;
}
if (strcmp("/sawnoffshotgun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 26, 999);*
return 1;
}
if (strcmp("/combatshotgun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 27, 999);*
return 1;
}
if (strcmp("/microsmg", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 28, 999);*
return 1;
}
if (strcmp("/mp5", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 29, 999);*
return 1;
}
if (strcmp("/ak47", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 30, 999);*
return 1;
}
if (strcmp("/m4", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 31, 999);*
return 1;
}
if (strcmp("/tec9", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 32, 999);*
return 1;
}
if (strcmp("/countryrifle", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 33, 999);*
return 1;
}
if (strcmp("/sniperrifle", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 34, 999);*
return 1;
}
if (strcmp("/rocketlauncher", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 35, 999);*
return 1;
}
if (strcmp("/hsrocketlauncher", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 36, 999);*
return 1;
}
if (strcmp("/flamethrower", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 37, 999);*
return 1;
}
if (strcmp("/minigun", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 38, 999);*
return 1;
}
if (strcmp("/satchelcharge", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 39, 999);*
return 1;
}
if (strcmp("/detonator", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 40, 999);*
return 1;
}
if (strcmp("/spraycan", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 41, 999);*
return 1;
}
if (strcmp("/fireextinguisher", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 42, 999);*
return 1;
}
if (strcmp("/camera", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 43, 999);*
return 1;
}
if (strcmp("/nightvisiongoggles", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 44, 999);*
return 1;
}
if (strcmp("/thermalvisiongoggles", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 45, 999);*
return 1;
}
if (strcmp("/parachute", cmdtext, true, 10) == 0)
}
GivePlayerWeapon(playerid, 46, 999);*
return 1;
}
if (strcmp("/weaps", cmdtext, true, 10) == 0)
}
SendClientMessage(playerid, 0xC2A2DAAA "/brassknuckles, /golfclub, /nitestick, /knife, /baseballclub, /shovel, /poolcue, /katana, /chainsaw, /purpledildo, /smallwhitevibrator, /largewhitevibrator, /silvervibrator, /flowers, /cane, /grenade, /teargas, /molotovcocktail, /9mm, /silenced9mm, /deserteagle, /shotgun, /sawnoffshotgun, /combatshotgun, /microsmg, /mp5, /ak47, /m4, /tec9, /countryrifle, /sniperrifle, /rocketlauncher, /hsrocketlauncher, /flamethrower, /minigun, /satchelcharge, /detonator, /spraycan, /fireextinguisher, /nightvisiongoggles, /thermalvisiongoggles, /parachute"); **
return 1;
}



Re: Weapon Cmds [Includes Every Weapon] - MrDeath537 - 04.08.2010

Simple, but nice. Next time try with pastebin.


Re: Weapon Cmds [Includes Every Weapon] - Mrkrabz - 04.08.2010

Wow that's alot of commands heh.

Well simple for a beginner i guess.


Re: Weapon Cmds [Includes Every Weapon] - XtremePlanet - 04.08.2010

It may be simple, but some will definitely find it very useful! Maybe your next release will be a Weapon Dialog with weapons that cost ***$. Scripting only improves, so good luck.


Re: Weapon Cmds [Includes Every Weapon] - hab2ever - 04.08.2010

Nice FS, lol


Re: Weapon Cmds [Includes Every Weapon] - rbN. - 04.08.2010

Nicey nice nice =D


Respuesta: Weapon Cmds [Includes Every Weapon] - Jesus^ - 04.08.2010

Good Job men, This commands will for many.


Re: Weapon Cmds [Includes Every Weapon] - alpha500delta - 04.08.2010

nice for beginner .

Maybe you can make it in a Dialog?


Re: Weapon Cmds [Includes Every Weapon] - Mimic - 04.08.2010

Nice one, you should make more than one SendClientMessage

Like this

Код:
SendClientMessage(playerid, WHITE, " /brassknuckles, /golfclub, /nitestick, /knife, /baseballclub, /shovel, /poolcue ");
SendClientMessage(playerid, WHITE, " /katana, /chainsaw, /purpledildo, /smallwhitevibrator, /largewhitevibrator, /silvervibrator ");
SendClientMessage(playerid, WHITE, " /flowers, /cane, /grenade, /teargas, /molotovcocktail, /9mm, /silenced9mm, /deserteagle, /shotgun ");
SendClientMessage(playerid, WHITE, " /sawnoffshotgun, /combatshotgun, /microsmg, /mp5, /ak47, /m4, /tec9, /countryrifle, /sniperrifle, /rocketlauncher ");
SendClientMessage(playerid, WHITE, " /hsrocketlauncher, /flamethrower, /minigun, /satchelcharge, /detonator, /spraycan, /fireextinguisher");
SendClientMessage(playerid, WHITE, " /nightvisiongoggles, /thermalvisiongoggles, /parachute ");
return 1;
Instead of it being all on the same line, but thats up to you! if you do decide to use that method, then don't forget to
Код:
#define WHITE 0xFFFFFFFF
Not bad critisim just a little thought to maybe make it a bit better!


Re: Weapon Cmds [Includes Every Weapon] - Ehab1911 - 04.08.2010

Awesome!