19.09.2011, 18:53
"/quitfaction"
PlayerInfo[playerid][pHunterR] = dini_Int(string2,"HunterDriver"); PlayerInfo[playerid][pRhinoR] = dini_Int(string2,"RhinoDriver"); PlayerInfo[playerid][pPredR] = dini_Int(string2,"PredatorDriver"); PlayerInfo[playerid][pHydraR] = dini_Int(string2,"RhinoDriver"); PlayerInfo[playerid][pViewPms] = dini_Int(string2,"ViewPms"); |
I found a bug In the server when i Login as Cop with gun's the server keep spammming
"[AC] : Tidzii maybe Have Gun cheat /spec him NOW!" "[AC] : Tidzii maybe Have Gun cheat /spec him NOW!" "[AC] : Tidzii maybe Have Gun cheat /spec him NOW!" etc ..... can any one Fix this Bug plizz !?? |
Hi, as already mentioned there is no possibility to turn the vehicle engine on.
I press shift, I type /engine, but the car is still frozen, no matter what vehicle it is. Any fix for this? |
if(!strcmp(cmd, "/engine", true)) { if(IsPlayerConnected(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { if(!engineOn[GetPlayerVehicleID(playerid)]) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 1; if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509) return 1; if(IsARentableCar(idcar)) { if(HireCar[playerid] != idcar) return 1; } if(IsAHarvest(idcar)) return 1; if(IsADrugHarvest(idcar)) return 1; if(IsASweeper(idcar)) return 1; if(CanTurnEngine[playerid] != idcar && CanTurnEngine[playerid] == 9999) return SendClientMessage(playerid, COLOR_GREY,"* You cannot turn this car's engine!"); format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",3500,0,"i",playeri d); gEngine[playerid] = 1; new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /engine",d,m,y,h,mi,s,sendername); CommandLog(string); return 1; } else if(engineOn[GetPlayerVehicleID(playerid)]) { if(!engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine not started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you think that you can start an engine which you don't have?"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); // if(IsABike(pveh)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Bike doesn't have an engine"); // if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to do that"); engineOn[GetPlayerVehicleID(playerid)] = false; //SafeRemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid,0); format(string, sizeof(string), "* %s turns off the engine.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /tn [Vehicle: %d]",d,m,y,h,mi,s,sendername, GetPlayerVehicleID(playerid)); CommandLog(string); return 1; } } } return 1; } |