Faza 0 Odesláno: 10. Únor, 2014 Share Odesláno: 10. Únor, 2014 Dobrý deň mám tento plugin len neviem preco ked kliknem naten neon tak nefunguje ani jeden sedim proste v aute pocasie nastavene a neon ani jeden nejde . Cim to moze byt ? #include <a_samp> #define COLOR_GREEN 0x33AA33AA #pragma tabsize 0 #define neondialog 8131 //*********Color****************// #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x1229FAFF public OnFilterScriptExit() { return 1; } //**************Commands*********************// public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/neon", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "{FFFF00}Neony pod Auto /* {33AA33}WEB {FFFF00}*/", "{33CCFF}Modry\n\r{AA3333}Cerveny\n\r{33AA33}Zeleny\n\rBiely\n\r{FF22EE}Ruzovy\n\r{FFFF00}Zlty\n\rVymazat Neon\n\r{AA3333}Odstrante neon ak chcete nasadit druhy! Neony funguju len v noci \n{AA3333}prihlaste sa cez rcon a prikaz na pocasie pouzite /rcon weather 50", "Potvrdit", "Ukoncit"); } return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == neondialog) { if(response) { if(listitem == 0) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0)); SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon nastaveny"); } if(listitem == 1) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon nastaveny"); } if(listitem == 2) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon nastaveny"); } if(listitem == 3) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon nastaveny"); } if(listitem == 4) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0)); SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon nastaveny"); } if(listitem == 5) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0)); SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon nastaveny"); } if(listitem == 6){DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon10")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon13")); DeletePVar(playerid, "Status"); } } } return 0; } public OnPlayerConnect() { new playerid; SendClientMessage(playerid, 0x33CCFFAA,"Neony pod auto /neon"); return 1; } Link to comment Share on other sites More sharing options...
Konvicka 0 Odesláno: 10. Únor, 2014 Share Odesláno: 10. Únor, 2014 Zkus : OnDialogResponse .. Změnit return 0; na return 1; Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 10. Únor, 2014 Share Odesláno: 10. Únor, 2014 Zkus : OnDialogResponse .. Změnit return 0; na return 1; Blbosť..return 0; na konci publicu nech nechá, ale nech pridá return 1; na koniec dialógu http://wiki.sa-mp.com/wiki/OnDialogResponse Link to comment Share on other sites More sharing options...
rhsCZ 19 Odesláno: 10. Únor, 2014 Share Odesláno: 10. Únor, 2014 public OnPlayerConnect() { new playerid; SendClientMessage(playerid, 0x33CCFFAA,"Neony pod auto /neon"); return 1; } tvl tak za tohle bych střílel Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 10. Únor, 2014 Share Odesláno: 10. Únor, 2014 public OnPlayerConnect() { new playerid; SendClientMessage(playerid, 0x33CCFFAA,"Neony pod auto /neon"); return 1; }tvl tak za tohle bych střílel Toto som si ani nevšimol človeče,,,,chlapče to si hneď oprav...to je väčšia hovadina než automatický kopač prdelí, Link to comment Share on other sites More sharing options...
Faza 0 Odesláno: 11. Únor, 2014 Author Share Odesláno: 11. Únor, 2014 tak co tam mam zle ? Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 11. Únor, 2014 Share Odesláno: 11. Únor, 2014 Je fakt tak ťažké otvoriť si new.pwn alebo hociaké iné .pwn či pozrieť sa na wiki?http://wiki.sa-mp.com/wiki/OnPlayerConnectProsím...použi trochu rozumu Link to comment Share on other sites More sharing options...
Faza 0 Odesláno: 11. Únor, 2014 Author Share Odesláno: 11. Únor, 2014 ale sak no furt sem steho deb*l Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 11. Únor, 2014 Share Odesláno: 11. Únor, 2014 Vidím že komu niet rozumu, tomu niet pomoci...new playerid je blbosť jak traky...do publicových zátvoriek daj playerid, neviem, prečo si ho odtiaľ zmazal Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now