Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Any idea why /giveweapon is not working?

$
0
0
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;
        }

Whenever i try to give someone a weapon, It says you're away, I tried to change between stuff, Any idea?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>