Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp("/motoron", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(motor[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
- motor[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!");
- }
- }
- }
- if (strcmp("/motoroff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(motor[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
- motor[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {E31919}Desligado!");
- }
- }
- }
- if (strcmp("/farolon", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(luz[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob);
- luz[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Farol {2F991A}Ligado!");
- }
- }
- }
- if (strcmp("/faroloff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(luz[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob);
- luz[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Farol {E31919}Desligado!");
- }
- }
- }
- if (strcmp("/alarmeon", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(alarme[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, VEHICLE_PARAMS_ON, por, cap, porma, ob);
- alarme[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Alarme {2F991A}Ligado!");
- }
- }
- }
- if (strcmp("/alarmeoff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(alarme[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu,VEHICLE_PARAMS_OFF, por, cap, porma, ob);
- alarme[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Alarme {E31919}Desligado!");
- }
- }
- }
- if (strcmp("/portaon", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(portas[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, VEHICLE_PARAMS_ON, cap, porma, ob);
- portas[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Portas {2F991A}Abertas!");
- }
- }
- }
- if (strcmp("/portaoff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(portas[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, VEHICLE_PARAMS_OFF, cap, porma, ob);
- portas[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Portas {E31919}Fechadas!");
- }
- }
- }
- if (strcmp("/capoon", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(capo[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, por, VEHICLE_PARAMS_ON, porma, ob);
- capo[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Capo {2F991A}Aberto!");
- }
- }
- }
- if (strcmp("/capooff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(capo[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, por, VEHICLE_PARAMS_OFF, porma, ob);
- capo[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Capo {E31919}Fechado!");
- }
- }
- }
- if (strcmp("/pmalaon", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(portamalas[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, por, cap, VEHICLE_PARAMS_ON, ob);
- portamalas[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Portamalas {2F991A}Aberto!");
- }
- }
- }
- if (strcmp("/pmalaoff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(portamalas[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, por, cap, VEHICLE_PARAMS_OFF, ob);
- portamalas[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Portamalas {E31919}Fechado!");
- }
- }
- }
- if (strcmp("/marcaon", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(objetivo[playerid] == 0)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, VEHICLE_PARAMS_ON);
- objetivo[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFAA, "Marca {2F991A}Ativada!");
- }
- }
- }
- if (strcmp("/marcaoff", cmdtext, true, 10) == 0)
- {
- new mot, lu, alar, por, cap, porma, ob;
- new carro = GetPlayerVehicleID(playerid);
- if(carro != INVALID_VEHICLE_ID)
- {
- if(objetivo[playerid] == 1)
- {
- GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
- SetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, VEHICLE_PARAMS_OFF);
- objetivo[playerid] = 0;
- SendClientMessage(playerid, 0xFFFFFFAA, "Marca {E31919}Desativada!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement