A lil help
#1

Like with the code below, it said "AK-47 time and it gave me sawn-offs.
i want it to say the name of the weapon it tells me.
I have a new aweaponnames.. on the top of my script so dont ask me if i have it. The anwser is yes.
pawn Код:
public GiveRandomWeapon(playerid)
{
    new r,string[128];
    do
    {
        r = random(39);
    }
    while(r == 0 || r == 19 || r == 20 || r == 21 || r == 37 || r == 38);
    GivePlayerWeapon(playerid, r, 500);
    format(string, sizeof(string), "~w~%s ~r~time!",aWeaponnames[(r)]);
    GameTextForAll(string, 3000, 3);
    return 1;
}
Reply


Messages In This Thread
A lil help - by TheAlienForce - 02.02.2011, 16:52
Re: A lil help - by admantis - 02.02.2011, 16:54
Re: A lil help - by Mauzen - 02.02.2011, 16:56
Re: A lil help - by TheAlienForce - 02.02.2011, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)