Sub-Command (playerid or range)?
#2

Something like this:
pawn Code:
new id, Float: range, money;

if (!sscanf(params, "fi", range, money))
{
    // code..
}
else if (!sscanf(params, "ri", id, money))
{
    // code..
}
else SendClientMessage(playerid, -1, "Usage: /giveweapon [playerid/range] [money]");
Reply


Messages In This Thread
[SOLVED] Sub-Command (playerid or range)? - by RayBiH - 18.12.2016, 18:35
Re: Sub-Command (playerid or range)? - by Konstantinos - 18.12.2016, 18:40
Re: Sub-Command (playerid or range)? - by RayBiH - 18.12.2016, 18:59
Re: Sub-Command (playerid or range)? - by SickAttack - 18.12.2016, 19:09
Re: Sub-Command (playerid or range)? - by Konstantinos - 18.12.2016, 19:15
Re: Sub-Command (playerid or range)? - by Duco - 19.12.2016, 09:27
Re: Sub-Command (playerid or range)? - by RayBiH - 19.12.2016, 10:17
Re: Sub-Command (playerid or range)? - by OneDay - 19.12.2016, 10:56

Forum Jump:


Users browsing this thread: 2 Guest(s)