[pawn]new engine, lights, alarm, doors, bonnet, boot, objective;[/pawn]
OnPlayerCommandTexthez:
[pawn]if(strcmp(\"/engine\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF8C00FF, \"Beindítottad a motort!\");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
return 1;
}
if(strcmp(\"/engineoff\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF8C00FF, \"Leállítottad a motort!\");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective);
return 1;
}[/pawn]