Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp("/motor",cmdtext,true,6)==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!");
- }
- else
- {
- 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!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement