Give a weapon help
#2

Try this:

pawn Код:
if (strcmp("/ak47", cmdtext, true, 10) == 0)
{
    new weap, ammo;
    GetPlayerWeaponData(i, 5, weap, ammo);
    if(weap == 30)
    {
        SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
        SendClientMessage(playerid,0xB4B5B7FF,"You already have an AK-47 foul.");
        SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
    }
    else
    {
        SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
        SendClientMessage(playerid,0xB4B5B7FF,"Here is you AK-47 now run off nub");
        SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------");
        GivePlayerWeapon(playerid, 30,1000);
    }
    return 1;
}
Reply


Messages In This Thread
Give a weapon help - by matdav - 07.07.2010, 02:50
Re: Give a weapon help - by BP13 - 07.07.2010, 03:03
Re: Give a weapon help - by TheKingOfSamp - 07.07.2010, 03:22
Re: Give a weapon help - by matdav - 07.07.2010, 03:23
Re: Give a weapon help - by Calgon - 07.07.2010, 03:25
Re: Give a weapon help - by BP13 - 07.07.2010, 03:47
Re: Give a weapon help - by TheKingOfSamp - 07.07.2010, 04:10
Re: Give a weapon help - by BP13 - 07.07.2010, 04:11

Forum Jump:


Users browsing this thread: 1 Guest(s)