02.02.2011, 16:52
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.
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;
}