25.09.2011, 18:47
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
exemplo:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE)
{
new
veiculo = GetPlayerVehicleID(playerid)
;
if(veiculo)
{
AddVehicleComponent(veiculo, 1010);
}
}
return 1;
}