04.06.2012, 01:02
Ae galera,achei isso aki em uma postagem do stewie
И isso ?
Segundo o autor da pergunta nenhum dos 2 funcionou.
https://sampforum.blast.hk/showthread.php?tid=319431
pawn Код:
public OnPlayerUpdate(playerid)
{
new pWeapon = GetPlayerWeapon(playerid), up, down,
pKeys = GetPlayerKeys(playerid, pKeys, up, down);
if((pWeapon == 45 || pWeapon == 44) && (pKeys & KEY_FIRE))
return 0;
return 1;
}
pawn Код:
public OnPlayerUpdate(playerid)
{
new pWeapon = GetPlayerWeapon(playerid);
new pKeys, ud, lr; pKeys = GetPlayerKeys(playerid, pKeys, ud, lr);
if(pWeapon == 44 || pWeapon == 45)
if((pKeys & KEY_FIRE) && !(IsPlayerInAnyVehicle(playerid)))
return 0;
return 1;
}
Segundo o autor da pergunta nenhum dos 2 funcionou.
https://sampforum.blast.hk/showthread.php?tid=319431