10.08.2013, 19:14
This is like an example:
- Tought if you want to make it fully support each gun, I'd recommand making a loop with data over them as you chose. And other values. You didn't give us a code to work with, this is the best I can make for you for now.
- Tought if you want to make it fully support each gun, I'd recommand making a loop with data over them as you chose. And other values. You didn't give us a code to work with, this is the best I can make for you for now.
pawn Код:
new pastWI[MAX_PLAYERS];
OnPlayerConnect(playerid)
{
pastWI[playerid] = 0;
return 1;
}
OnPlayerUpdate(playerid)
{
new weaponid = GetPlayerWeapon(playerid);
if(weaponid != pastWI[playerid])
{
if(pastWI[playerid] == 24 && weaponid == 31)
{
SetPlayerArmedWeapon(playerid, 24);
}
}
}