Give a weapon help
#3

you forgot the weap and the ammo , also i have command for giving gun

Код:
	if(strcmp(cmd, "/givegun", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GREY, "USAGE: /givegun [Playerid/PartOfName] [WeaponID]");
				SendClientMessage(playerid, COLOR_WHITE, "*** Weapon IDs ***");
				SendClientMessage(playerid, COLOR_GRAD2, "|1 Brass Knuckles|2 Golf Club|3 Nite Stick|4 Knife|5 Baseball Bat|6 Shovel|7 Pool Cue|8 Katana| ");
				SendClientMessage(playerid, COLOR_GRAD2, "|9 Chainsaw|10 Purple Dildo|11 Small White Vibrator|12 Large White Vibrator|13 Silver Vibrator|");
				SendClientMessage(playerid, COLOR_GRAD2, "|14 Flowers|15 Cane|16 Gernade|17 Tear Gas|18 Molotov Cocktail|22 Pistol|23 SDPistol|24 Desert Eagle|");
				SendClientMessage(playerid, COLOR_GRAD2, "|25 Shotgun|26 Sawnoffs|27 SPAS12|28 UZI|29 MP5|30 AK47|31 M4|32 Tec9|33 Rifle|34 Sniper Rifle| ");
				SendClientMessage(playerid, COLOR_GRAD2, "|35 Rocket Launcher|36 HeatSeeker Rocket Launcher|37 Flamethrower|38 Minigun|41 Spraycan|");
				SendClientMessage(playerid, COLOR_GRAD2, "|42 Fire Extinguisher|43 Camera|44 Nightvision Goggles|45 Infrared Vision|46 Parachute| ");
				return 1;
			}
			new playa;
			new gun;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			gun = strval(tmp);
			if(gun < 1||gun > 46)
			{ SendClientMessage(playerid, COLOR_GRAD1, "   wrong WeaponID!"); return 1; }
			if (PlayerInfo[playerid][pAdmin] >= 4)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
						GivePlayerWeapon(playa, gun, 650000);
						PlayerInfo[playa][pAdmingave] = 1;
					}
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			}
		}
		return 1;
	}
Reply


Messages In This Thread
Give a weapon help - by matdav - 07.07.2010, 02:50
Re: Give a weapon help - by BP13 - 07.07.2010, 03:03
Re: Give a weapon help - by TheKingOfSamp - 07.07.2010, 03:22
Re: Give a weapon help - by matdav - 07.07.2010, 03:23
Re: Give a weapon help - by Calgon - 07.07.2010, 03:25
Re: Give a weapon help - by BP13 - 07.07.2010, 03:47
Re: Give a weapon help - by TheKingOfSamp - 07.07.2010, 04:10
Re: Give a weapon help - by BP13 - 07.07.2010, 04:11

Forum Jump:


Users browsing this thread: 2 Guest(s)