10.10.2010, 21:05
Sorry for a double post if i did Double post now but heres the code 
Note I still didnt test this...

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(givegun, 7, cmdtext);
return 0;
}
dcmd_givegun(playerid, params[])
{
//Maybe an if statement here.. I dont have the function although, you might add
//the Distance between player...
new pID1,
Ammo = GetPlayerAmmo(playerid),
Weapon = GetPlayerWeapon(playerid);
if (sscanf(params, "u", pID1)) SendClientMessage(playerid, 0xFF0000AA, "/givegun PLAYERID");
GivePlayerWeapon(pID1, Weapon, Ammo);
ResetPlayerWeapons(playerid);
}

