public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){new vid;vid = GetPlayerVehicleID(playerid); new engine, lights, alarm, doors, bonnet, boot, objective; if(newkeys == KEY_JUMP ){ SendClientMessage(playerid, COLOR_GREEN, \"(( Szerver: {FFFFFF}A kocsi indul {33AA33}))\"); GetVehicleParamsEx ( vid, engine, lights, alarm, doors, bonnet, boot, objective ); SetVehicleParamsEx ( vid,VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective );}return 1;}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ new vid; vid = GetPlayerVehicleID(playerid); new engine, lights, alarm, doors, bonnet, boot, objective; if(newkeys & KEY_JUMP ) { SendClientMessage(playerid, COLOR_GREEN, \"(( Szerver: {FFFFFF}A kocsi indul {33AA33}))\"); GetVehicleParamsEx ( vid, engine, lights, alarm, doors, bonnet, boot, objective ); SetVehicleParamsEx ( vid,VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective ); } return 1;}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){new vid;vid = GetPlayerVehicleID(playerid); new engine, lights, alarm, doors, bonnet, boot, objective; if(newkeys == KEY_JUMP ){ if(IsPlayerInVehicle(playerid, vid)) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy kocsiban ezért nem tudodElindítani a jármûvet!\"); GetVehicleParamsEx ( vid, engine, lights, alarm, doors, bonnet, boot, objective ); SetVehicleParamsEx ( vid,VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective );}return 1;}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if(newkeys == KEY_JUMP && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vid = GetPlayerVehicleID(playerid),engine, lights, alarm, doors, bonnet, boot, objective; SendClientMessage(playerid, COLOR_GREEN, \"(( Szerver: {FFFFFF}A kocsi indul {33AA33}))\"); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective ); SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective );}return 1;}