Code:
CMD:giveweapon(playerid, params[])
{
new string[128], playerb, weapon;
if(!IsPlayerNearPlayer(playerid, playerb, 2)) return SendClientMessage(playerid, COLOR_GREY, "You are too far away from that player.");
if(sscanf(params, "us[32]d", playerb, weapon))
{
SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /giveweapon [playerid] [weapon]");
return 1;
}