Am si eu o problema cu AVS - Advanced Vehicle System Am urmat toti pasi de la creatorul acestui [FS] dar totusi am o mica problema....Dupa ce dau /adddealership si adaug o masina prin comada /addv imi apare masina si cand intru in ea imi zice aia cu "This vehicle is for sale, Would you like to buy it? yes/no si daca dau yes nu se intampla nimic...nu imi cumpara masina..dupa care pot sa merg si cu ea....:| va rog sa ma ajutati... Asta e tot ce am la On DialogResponse! //---------------------------<[ OnDialogResponse ]>-------------------------------------------------------- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new sendername[MAX_PLAYER_NAME]; new string[128]; new veh = GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; //============================================================================== if(dialogid == DIALOGID) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Fighting Styles", "Elbow\nBoxing\nGrabkick\nKneehead\nKungfu\nNormal", "Select", "Cancel"); } } return 1; } //============================================================================== if(dialogid == 1) { if(!response) return SendClientMessage(playerid, 0xCC0000FF, "INFORMATION : You clicked Cancel"); switch(listitem) { case 0: { if(GetPVarInt(playerid, "Lights") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Lights", 1); } else if(GetPVarInt(playerid, "Lights") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Lights", 0); } } case 1: { if(GetPVarInt(playerid, "Bonnet") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective); SetPVarInt(playerid, "Bonnet", 1); } else if(GetPVarInt(playerid, "Bonnet") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective); SetPVarInt(playerid, "Bonnet", 0); } } case 2: { if(GetPVarInt(playerid, "Boot") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective); SetPVarInt(playerid, "Boot", 1); } else if(GetPVarInt(playerid, "Boot") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective); SetPVarInt(playerid, "Boot", 0); } } case 3: { if(GetPVarInt(playerid, "Doors") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective); SetPVarInt(playerid, "Doors", 1); } else if(GetPVarInt(playerid, "Doors") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective); SetPVarInt(playerid, "Doors", 0); } } case 4: { if(GetPVarInt(playerid, "Engine") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Engine", 1); } else if(GetPVarInt(playerid, "Engine") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Engine", 0); } } case 5: { if(GetPVarInt(playerid, "Alarm") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective); SetPVarInt(playerid, "Alarm", 1); } else if(GetPVarInt(playerid, "Alarm") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective); SetPVarInt(playerid, "Alarm", 0); } } } return 1; } //============================================================================== if(dialogid == 2) { if(response) return SendClientMessage(playerid, COLOR_RED, "Foarte bine!"); else SendClientMessage(playerid, COLOR_RED, "Nu? Scuze,ai luat kick din cauza ca nai vrut sa respecti regulile."); Kick( playerid ); } //============================================================================== if(dialogid == DIALOGID+1) { if(response) { if(listitem == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW); } if(listitem == 1) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); } if(listitem == 2) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK); } if(listitem == 3) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD); } if(listitem == 4) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU); } if(listitem == 5) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); } } } if(response) { if(dialogid == 12346 || dialogid == 12347) { if(strlen(inputtext)) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } else { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"Wrong Password\nPlease insert the correct password:",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } } } if(dialogid == 12345) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s.ini", sendername); new File: hFile = fopen(string, io_read); if (hFile) { SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one."); fclose(hFile); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerRegister(playerid,tmppass); } else { new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"Welcome, %s\nYou are not registred.\nPlease enter you registration password:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit"); } } } else { Kick(playerid); } return 1; } dcmd_fevent(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 3) { new text[128], cash; if(sscanf(params,"si",text,cash))return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /fevent [text / random] [reward]"); if(strlen(text) > 50) return SendClientMessage(playerid,COLOR_WHITE,"ERROR: Your fast event word is to long. Please shorten it to 25 characters max."); if(cash < 1 || cash > 1000000000) return SendClientMessage(playerid,COLOR_WHITE,"ERROR: Invalid prize money. Please use $1 - $1000000000."); SendClientMessage(playerid,0x33AA33AA,"You have forced a new fevent."); format(ReactionString,sizeof(ReactionString),"%s",text); ReactionCash = cash; PassiveMode = PASSIVE_ON; ReactionTest(); } return 1; }