06.06.2011, 20:45
Hello,
I have this code in KEY_SUBMISSION but i press the key and dont work.
Can you help me?
I have this code in KEY_SUBMISSION but i press the key and dont work.
pawn Код:
else if(PRESSED(KEY_SUBMISSION))
{
if (IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(lights != 1)
{
SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Ligas-te as Luzes!");
}
else
{
SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Desligas-te as Luzes!");
}
return 1;
}
}