31.10.2011, 21:41
Codigo actual й:
if((newkeys == 8192) && (IsPlayerInAnyVehicle(playerid)))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
if(engine == 0)
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,al arm,doors,boot,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Ligas-te o carro!!");
}
else if(engine == 1) //Esqueceu
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,boot,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Desligas-te o carro!!");
}
return 1;
}
mas ja agora se alguem me poder dizer o codigo para por esse comando CRTL
if((newkeys == 8192) && (IsPlayerInAnyVehicle(playerid)))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective);
if(engine == 0)
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,al arm,doors,boot,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Ligas-te o carro!!");
}
else if(engine == 1) //Esqueceu
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,boot,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Desligas-te o carro!!");
}
return 1;
}
mas ja agora se alguem me poder dizer o codigo para por esse comando CRTL