/giveweapon command
#7

Quote:
Originally Posted by Alexy_Dramon
Посмотреть сообщение
Код:
CMD:giveweapon(playerid,params[])
{
    new pAdmin[MAX_PLAYERS];
	if(pAdmin[playerid] <= 4 && !IsPlayerAdmin(playerid)) // If they are not RCON admin
	{
		// Then it sends this message
		SendClientMessage(playerid,-1,"You are not authorised to use this command.");
	    return 1;
	}
	new
		weaponid,
		targetid,
		ammo;

	if(sscanf(params,"uii",targetid,weaponid,ammo))
	{
	    // If they typed the command wrong then show them this
	    SendClientMessage(playerid,-1,"USAGE: /giveweapon [playerid] [weaponid] [ammo]");
	    return 1;
	}
	else
	{
	    GivePlayerWeapon(targetid,weaponid,ammo);
	    return 1;
	}
}
That should work try this
Serious? did you just copy your giveweapon command? lol
Reply


Messages In This Thread
DELETED - by RenSoprano - 20.03.2012, 07:41
Re: /giveweapon command - by Roel - 20.03.2012, 08:15
Re: /giveweapon command - by Klutty - 20.03.2012, 08:33
Re: /giveweapon command - by RenSoprano - 20.03.2012, 08:35
Re: /giveweapon command - by Klutty - 20.03.2012, 08:53
Re: /giveweapon command - by Alexy_Dramon - 20.03.2012, 11:26
Re: /giveweapon command - by Roel - 20.03.2012, 11:59
Re: /giveweapon command - by Bogdan1992 - 20.03.2012, 12:16
Re: /giveweapon command - by Roel - 20.03.2012, 14:00
Re: /giveweapon command - by RenSoprano - 20.03.2012, 21:18

Forum Jump:


Users browsing this thread: 1 Guest(s)