What's wrong with this command?
#2

Try that and see what it results.
pawn Код:
CMD:giveweapon(playerid, params[])
{
    new giveplayerid, weapon, ammo;
    if(sscanf(params, "uii", giveplayerid, weapon, ammo)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /giveweapon [playerid] [weaponid] [ammo]");
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_GREY,"Player is not connected.");
    GivePlayerWeapon(giveplayerid, weapon, ammo);
    return 1;
}
Reply


Messages In This Thread
What's wrong with this command? - by austin070 - 16.12.2013, 01:46
Re: What's wrong with this command? - by Tayab - 16.12.2013, 02:12
Re: What's wrong with this command? - by stundje - 16.12.2013, 08:46

Forum Jump:


Users browsing this thread: 2 Guest(s)