Is this a SA-MP bug ?
#1

The following code just switch to AK47 for first time only if player has not changed current weapon.
After player has changed it's current weapon I can't set it to AK47.
Is this a SA-MP bug ?
Quote:

OnPlayerCommandText:

GivePlayerWeapon(pID, uziID,100);
GivePlayerWeapon(pID, ak47ID,100);


SetPlayerArmedWeapon(playerid, 0);
SetPlayerArmedWeapon(playerid, ak47ID);
Reply
#2

Why are you using SetPlayerArmedWeapon?

Код:
public OnPlayerUpdate(playerid)
{
    SetPlayerArmedWeapon(playerid,0); // disables weapons
    return 1;
}
Give us the full code you have.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)