02.06.2012, 22:31
Код:
if(!strcmp(cmdtext, "/ligarmotor",false)) { new engine,lights,alarm,doors,bonnet,boot,objective; if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VERDE, "Vocк {FF0000}nгo {FFFFFF}estб em um {00FF00}veнculo{FFFFFF}"); new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vid, 1, lights, alarm, doors, bonnet, boot, objective); } return 1; } if(strcmp(cmdtext, "/desligarmotor",true) == 0) { new engine,lights,alarm,doors,bonnet,boot,objective; if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, VERDE, "Vocк {FF0000}nгo {FFFFFF}estб em um {00FF00}veнculo{FFFFFF}"); new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vid, 0, lights, alarm, doors, bonnet, boot, objective); } return 1; }