06.08.2011, 21:32
OnGameModeInit:
comando:
pawn Код:
ManualVehicleEngineAndLights();
pawn Код:
if(strcmp(cmdtext, "/ligar", true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
new doors,lights,engine,alarm,bonnet,boot,objective;
if(vid != INVALID_VEHICLE_ID) return SendClientMessage(playerid, 0xFFFFFF, "Vocк nгo esta em um veiculo");
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}