How can I do this?
#2

Code:
public OnPlayerUpdate(playerid)
{
    new weapons[14][2];
    for(new i=0; i<13; i++)
   {
       	GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
        if(weapons[i][0] == 24)
        {
            SetPlayerArmedWeapon(playerid, 24);
        }
    }
    return 1;
}
You can also use this code under a timer, OnPlayerUpdate is called more than 50 times in a second.
Reply


Messages In This Thread
How can I do this? - by Yerro - 10.08.2015, 16:04
Re: How can I do this? - by Tamy - 10.08.2015, 16:11
Re: How can I do this? - by SoFahim - 10.08.2015, 16:15
Re: How can I do this? - by Michael B - 10.08.2015, 16:17
Re: How can I do this? - by SickAttack - 10.08.2015, 16:23
Respuesta: How can I do this? - by Yerro - 10.08.2015, 16:32

Forum Jump:


Users browsing this thread: 4 Guest(s)