Quote:
Originally Posted by rBcollo
Try this code:
pawn Код:
CMD:tazer(playerid, params[]) { if(tazer[playerid] == 0) { GivePlayerValidWeapon(playerid, 23, 9999); tazer[playerid] = 1; new string[56]; format(string, sizeof(string), "* %s unholsters his tazer.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE); return 1; } if(tazer[playerid] == 1) { tazer[playerid] = 0; new string[56]; GivePlayerValidWeapon(playerid, 22, 6000); format(string, sizeof(string), "* %s holsters his tazer. ", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE); return 1; } return 1; }
|
This wont help at all, because 22 is Colt 45, and it'd suck if I replace my Deagle with a tazer and get a colt 45 in return when you holster it. All I am askin is what is wrong with my code.