SA-MP Forums Archive
Need help [Tazer command] - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help [Tazer command] (/showthread.php?tid=323549)



Need help [Tazer command] - Cole_William - 06.03.2012

Hello everyone im using my Vortex 2 edit i have forgoten on how to fix my tazer command!
This is the Code

Код:
CMD:tazer(playerid, params[]) {
	if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
	    switch(playerVariables[playerid][pTazer]) {
			case 0: {
			    givePlayerValidWeapon(playerid, 22);
			    playerVariables[playerid][pTazer] = 1;
			}
			case 1: {
			    removePlayerWeapon(playerid, 22);
			    playerVariables[playerid][pTazer] = 0;
			}
		}
	}
	return 1;
}
I need it to show a silenced pistol and it needs to when shot to JUST TAZE for some reason it doesnt tazer them sometimes....
Please re-post with new codeing