Jump to content

susu

Membru
  • Posts

    32
  • Joined

  • Last visited

    Never

Everything posted by susu

  1. susu

    Arme

    foarte frumos 10/10 Bravo
  2. [move]Help[/move] Dar acum apare dialogu iar cand dau pe o functie din lista ex: Change Vehicle Model ID numi mai apare ca sa scriu id si sa se schimbe , numi mai apare nimik Ma Ajuta cineva?
  3. [move]Salut baieti[/move] Am si eu o problema am facut la o comanda cu dialog si cand scriu comanda numi apare dialog va rog frumos care stiti ajutatima si pe mine. [pawn]#define DIALOGDVEH 232111123 #define DIALOGMODEL 9021 public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) switch(dialogid) { case DIALOGDVEH: { if(response) { switch(listitem) { case 1: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s",CarInfo[carkey][cDescription]); } else if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s\n %s",CarInfo[carkey][cDescription],CarInfo[carkey2][cDescription]); } else if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] != -1) { format(string,256," %s\n %s\n %s",CarInfo[carkey][cDescription],CarInfo[carkey2][cDescription],CarInfo[carkey3][cDescription]); } ShowPlayerDialog(playerid,DIALOGMODEL,DIALOG_STYLE_LIST,"Change Vehicle Model ID",string,"Enter","Exit"); } } } } case DIALOGMODEL: { if(response) { switch(listitem) { case 1: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] == -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s",CarInfo[carkey][cDescription]); ShowPlayerDialog(playerid,DIALOGMODEL+1,DIALOG_STYLE_INPUT,string," Type in the box, the Model ID you want:","Change","Cancel"); } } case 2: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] == -1) { format(string,256," %s",CarInfo[carkey2][cDescription]); ShowPlayerDialog(playerid,DIALOGMODEL+2,DIALOG_STYLE_INPUT,string," Type in the box, the Model ID you want:","Change","Cancel"); } } case 3: { new string[256]; new carkey = PlayerInfo[playerid][pPcarkey]; new carkey2 = PlayerInfo[playerid][pPcarkey2]; new carkey3 = PlayerInfo[playerid][pPcarkey3]; if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] != -1) { format(string,256," %s",CarInfo[carkey3][cDescription]); ShowPlayerDialog(playerid,DIALOGMODEL+3,DIALOG_STYLE_INPUT,string," Type in the box, the Model ID you want:","Change","Cancel"); } } } } } case DIALOGMODEL+1: { if(response) { new carkey = PlayerInfo[playerid][pPcarkey]; if(strlen(inputtext)) { new string[128]; new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_GREY, " Wrong model id!"); return 1; } CarInfo[carkey][cModel] = model; format(CarInfo[carkey][cDescription], 32, "%s",vehName[model-400]); format(string, sizeof(string), " [Veh Info]: {3D9AD4}New vehicle model saved."); SendClientMessage(playerid, COLOR_BLUE, string); OnPropUpdate(); SavePlayerData(playerid); TogglePlayerControllable(playerid, 1); } } } case DIALOGMODEL+2: { if(response) { new carkey = PlayerInfo[playerid][pPcarkey2]; if(strlen(inputtext)) { new string[128]; new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_GREY, " Wrong model id!"); return 1; } CarInfo[carkey][cModel] = model; format(CarInfo[carkey][cDescription], 32, "%s",vehName[model-400]); format(string, sizeof(string), " [Veh Info]: {3D9AD4}New vehicle model saved."); SendClientMessage(playerid, COLOR_BLUE, string); OnPropUpdate(); SavePlayerData(playerid); TogglePlayerControllable(playerid, 1); } } } case DIALOGMODEL+3: { if(response) { new carkey = PlayerInfo[playerid][pPcarkey3]; if(strlen(inputtext)) { new string[128]; new model; model = strval(inputtext); if(model < 400 && model > 611) { SendClientMessage(playerid, COLOR_GREY, " Wrong model id!"); return 1; } CarInfo[carkey][cModel] = model; format(CarInfo[carkey][cDescription], 32, "%s",vehName[model-400]); format(string, sizeof(string), " [Veh Info]: {3D9AD4}New vehicle model saved."); SendClientMessage(playerid, COLOR_BLUE, string); OnPropUpdate(); SavePlayerData(playerid); TogglePlayerControllable(playerid, 1); } } } } public OnPlayerCommandText(playerid, cmdtext[]) if (strcmp(cmd, "/dveh", true) == 0) { if(PlayerInfo[playerid][pPcarkey] != -1 || PlayerInfo[playerid][pPcarkey2] != -1 || PlayerInfo[playerid][pPcarkey3] != -1) { ShowPlayerDialog(playerid,DIALOGDVEH,DIALOG_STYLE_LIST,"Donate Vehicle's"," Change Vehicle Model ID \n Change Vehicle Color ID \n Save Vehicle Position \n Respawn Vehicle \n Tow Vehicle","Enter","Exit"); return 1; } else SendClientMessage(playerid, COLOR_GREY, " You don't have a donater vehicle"); }[/pawn] EDIT: ms TzAkS , Dar acum apare dialogu iar cand dau pe o functie din lista ex: Change Vehicle Model ID numi mai apare ca sa scriu id si sa se schimbe , numi mai apare nimik
  4. susu

    HELP AFK

    si inca o intrebare daca nu va suparati cum faca ca nu merge bn uneori apare culoare gri alteori nu apare imi puteti spune va rog dc nu merge bn?
  5. susu

    HELP AFK

    mersi mult de tot
  6. susu

    HELP AFK

    va rog sa imi spunati daca stiti cum fac cand playerul lasa afk sai apara culoare gri dupa un minut si cand nu mai este afk sai dispara si sa fie culoare pe care o avea inainte sa lase afk si daca am gresit undeva va rog sa-mi ziceti Please help!
  7. Cum fac ca cand lasa afk dupa un minut sa apara culoare care e pusa si cand nu mai este afk sai apara culoare pe care o avea , aia de la civil sau de la factiuni , Va rog frumos sa ma ajutati daca stiti! cand lasf afk apare culoare aia de afk la player dar nu mere uneori apara alteori nu apare si daca stii daca lasa cu wanted sau in drum sai dea kick automat va rog frumos sa ma ajutati daca stiti
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.