14.09.2009, 03:11
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new moto[10]; moto[0]=veid, moto[1]=vehid, moto[2]=vehid, moto[3]=vehid; //where vehid is a vehicule number. for (new i=0; i<4;i++) { if (IsPlayerInVehicle(playerid,moto[i]) && estado == PLAYER_STATE_DRIVER) { if (newkeys & (KEY_FIRE | KEY_ACTION)) { pushiment(playerid); } }
---------------------------------------------------------------------------------------------------
EDIT
I Solved the problem is IsPlayerInVehicle return o check the ID not the model, how i solved, whit getvehiculemodel =D