Jump to content

-=[Vyorel]=-

Administrator
  • Posts

    2.130
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by -=[Vyorel]=-

  1. Greu tare era sa adaugi o amarata de linie. if(strcmp(cmd, "/setskin", true) == 0) { new Skin; new cmd[256]; new idx; cmd = strtok(cmdtext,idx); Skin = strval(tmp); // if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /setskin [0 - 299]"); if(Skin >= 300) return SendClientMessage(playerid, COLOR_GREY, "Skins: 0 - 299"); SetPlayerSkin(playerid, Skin); return 1; }
  2. Adauga pe la inceputul scriptului, dupa #include ... linia asta #pragma tabsize 0
  3. Cu toate ca iti raspunde, mai si comentezi aiurea. Ce ti-a zis e corect, numai ca tu ai vrea ca noi sa facem o magie si sa-ti reparam scriptul fara sa-l vedem, ceva de genu e la tine. Tu ai vrut.
  4. Eminem, n-ai sanse. Habar nu ai regulamentul forumului si vrei moderator. Dovada: Titlul la topicul asta. 54 posturi, esti cam nou.
  5. -=[Vyorel]=-

    ajutor

    Cauta ca s-a discutat de foarte multe ori. Titlul ala m-a facut sa dau Topic Locked.
  6. Scoate-ti antihack-ul ala. Sigur ai vreunu.
  7. http://www.sa-mp.ro/forum/index.php/topic,6490.0.html Aceeasi pasi.
  8. Foarte usor. Sa incepem... Vezi ce e gresit prin includele ala, sau cauta altu pe forumul oficial. Pune liniile. Adauga asta: forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; } Aseaza corect liniile folosind tasta TAB, sau adauga la inceputul scriptului linia asta: #pragma tabsize 0 Adauga astea: forward SendIRCMessage(channel, color, string[]); public SendIRCMessage(channel, color, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayersChannel[i] == channel) { SendClientMessage(i, color, string); } } } } Adauga astea: forward OOCOff(color,const string[]); public OOCOff(color,const string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(!gOoc[i]) { SendClientMessage(i, color, string); } } } } Aici nu sunt sigur, dar incearca. Adauga asta pe la inceputul scriptului. Trebuie sa mai ai altele cu forward. forward OnPlayerUpdate(playerid); Apoi la OnPlayerDisconnect adauga asta: OnPlayerUpdate(playerid); La GameModeInitExitFunc (cred ca asa ai) adauga asta: OnPlayerUpdate(i); La OnGameModeInit adauga asta: SetTimer("OnPlayerUpdate", 1800000, 1); Cauta public SaveAccounts() si ar trebui sa-l ai la fel ca asta: public SaveAccounts() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { OnPlayerUpdate(i); if(PlayerInfo[i][pJob] > 0) { if(PlayerInfo[i][pContractTime] < 25) { PlayerInfo[i][pContractTime] ++; } } } } } Daca nu-l ai adauga-l. Apoi adauga asta pe unde vrea inima ta public OnPlayerUpdate(playerid) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid]) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "%s.ini", playername3); new File: hFile = fopen(string3, io_write); if (hFile) { new var[32]; format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var); PlayerInfo[playerid][pCash] = GetPlayerCash(playerid); format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var); format(var, 32, "Wanted=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var); format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var); format(var, 64, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var); format(var, 64, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var); format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var); format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var); format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var); format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var); format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var); format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var); format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var); format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var); format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var); format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var); format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var); format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var); format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var); format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var); format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var); format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var); format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var); format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var); format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var); format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var); format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var); format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var); format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var); format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var); format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var); format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var); format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var); format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var); format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var); format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var); format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var); format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var); format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var); format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var); format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var); format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var); format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var); format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var); format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var); format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var); format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var); format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var); format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var); format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var); format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var); format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var); format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var); format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var); format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var); format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var); format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var); format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var); format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var); format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var); format(var, 32, "RobSkill=%d\n",PlayerInfo[playerid][pRobSkill]);fwrite(hFile, var); format(var, 32, "Rob=%d\n",PlayerInfo[playerid][pRob]);fwrite(hFile, var); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var); format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var); format(var, 32, "Tow=%d\n",PlayerInfo[playerid][pTow]);fwrite(hFile, var); format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var); format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var); format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var); format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var); format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var); format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var); format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var); format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var); format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var); format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var); format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var); format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var); format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var); format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var); format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var); format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var); format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var); format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var); format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var); format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var); format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var); format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var); format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var); format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var); format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var); format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var); format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var); format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var); format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var); if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; } format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var); format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var); format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var); format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var); format(var, 64, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var); format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var); format(var, 32, "CabinetTime=%d\n",PlayerInfo[playerid][pCabinetTime]);fwrite(hFile, var); fclose(hFile); } } } return 1; } Pe la comanda /buy (daca o ai) si pe la alte comenzi gen asta, trebuie sa ai pe undeva pe acolo OnPlayerUpdate(playerid); PS: Eu ti-am zis pe unde sunt liniile, tu inainte verifica daca ai sau nu liniile alea la comenzi mai ales. PS2: Inainte sa incepi sa modifici, salveaza o copie a modului pentru orice eventualitate.
  9. Uite [iurl=http://www.sa-mp.ro/forum/index.php/topic,1600.0.html]aici[/iurl].
  10. Aici nu se cer scripturi.
  11. Plugin-ul il ai?
  12. Compileaza-l cu Pawno din 0.3c
  13. http://wiki.sa-mp.com/wiki/SetPlayerMapIcon
  14. http://wiki.sa-mp.com/wiki/MapIcons
  15. Uite aici, cred ca te va ajuta http://www.xerom-zone.ro/index.php?action=tutoriale;sa=administrarefisiereprinftp
  16. http://www.sa-mp.ro/forum/index.php/topic,2825.0.html
  17. Compileaza-l cu Pawno din 0.3c
  18. Descarca includele ala de aici si pune-l in Pawno/Include din serverul tau.
  19. Stergea alea gen if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4) { SendClientMessage(playerid, COLOR_GRAD2, "Access denied !"); return 1; }
  20. Pai tu aveai la comenzi cmd apoi dupa ce ai pus ce ti-a zis -IcE- ai schimbat in cmdtext. Pana la urma cum le lasi? Pune-le la toate comenzile cmd inloc de cmdtext iar apoi unde vrei tu prin script, de preferat exact la sfarsit codul asta: strtok(const stringstrtok[], &index) { new length = strlen(stringstrtok); while ((index < length) && (stringstrtok[index] <= ' ')) { index++; } new offset = index, result[20]; while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = stringstrtok[index]; index++; } result[index - offset] = EOS; return result; }
  21. Vezi daca merge //-__-__-__-__Neon System By [EDT]Quattro-__-__-__-__-__-_- //-__-__-__-__-_-Do Not Remove Credits__-__-__-__-__-__- //-__-__-__-__-Commands: /neonshop /neon-__-__-__-__-__-_-_ //-__-__-__-__-__Enjoy Using It!_-__-__-__-__-__-_ //-__-__-__-__-__-__-__-__-__-__-__-__-__-__ #include <a_samp> #define COLOR_YELLOW 0xFFFF00AA public OnFilterScriptInit() { print("\n--------------------------------------"); print("Neon System By [EDT]Quattro Loaded!"); print("--------------------------------------\n"); // CreateObject(8954, -1984.5048828125, 426.61761474609, 28.943223953247, 0, 0, 184); CreateObject(11326, -1994.1408691406, 437.97189331055, 28.679206848145, 0, 0, 0.25); CreateObject(7191, -1956.515625, 448.09234619141, 28.587062835693, 0, 0, 95.25); CreateObject(1173, -1980.5299072266, 435.47134399414, 30.378553390503, 0, 0, 0); CreateObject(1172, -1980.4494628906, 435.71505737305, 29.489776611328, 0, 0, 0); CreateObject(1171, -1981.2755126953, 435.64346313477, 29.886144638062, 0, 178, 354.75); CreateObject(1169, -1981.0889892578, 435.56182861328, 29.487819671631, 0, 0, 0); CreateObject(1168, -1975.2124023438, 435.77593994141, 30.412317276001, 0, 0, 178); CreateObject(1167, -1975.1953125, 435.8342590332, 29.416021347046, 0, 0, 178); CreateObject(1163, -1984.1585693359, 439.34622192383, 30.586503982544, 274, 0, 269.75); CreateObject(1162, -1984.1672363281, 441.52844238281, 30.722972869873, 270, 179.40661621094, 87.406616210938); CreateObject(1139, -1984.2535400391, 443.72668457031, 30.460748672485, 280.19604492188, 191.37036132813, 98.445404052734); CreateObject(1112, -1973.9462890625, 437.38125610352, 29.646976470947, 3.9391174316406, 349.97607421875, 0.6956787109375); CreateObject(1098, -1974.1801757813, 440.46667480469, 29.947492599487, 0, 0, 6); CreateObject(1098, -1974.1300048828, 440.42913818359, 28.843486785889, 0, 0, 4); CreateObject(1097, -1974.123046875, 438.56341552734, 29.941816329956, 0, 0, 180.5); CreateObject(1097, -1974.0185546875, 438.56216430664, 28.837507247925, 0, 0, 2); CreateObject(1096, -1974.1331787109, 442.32843017578, 29.935081481934, 0, 0, 181.25); CreateObject(1096, -1974.1580810547, 442.26931762695, 28.77064704895, 0, 0, 0); CreateObject(1089, -1977.2879638672, 447.44540405273, 30.869338989258, 0, 0, 0); CreateObject(1085, -1974.0982666016, 444.29943847656, 29.984083175659, 0, 0, 179.25); CreateObject(1085, -1974.0404052734, 444.24810791016, 28.742120742798, 0, 0, 0); CreateObject(1080, -1973.9967041016, 436.78811645508, 28.870197296143, 0, 0, 0.75); CreateObject(1080, -1974.0190429688, 436.87274169922, 30.091676712036, 0, 0, 181); CreateObject(1065, -1975.4147949219, 447.41397094727, 30.93871307373, 0, 0, 0); CreateObject(1047, -1984.2227783203, 440.37838745117, 29.250276565552, 0, 0, 181.5); CreateObject(1039, -1984.2292480469, 443.45150756836, 29.330806732178, 0, 0, 184); CreateObject(1036, -1984.1687011719, 437.39694213867, 29.339908599854, 0, 0, 178); CreateObject(1010, -1984.2023925781, 437.30276489258, 30.272491455078, 0, 90, 0); CreateObject(1009, -1984.2290039063, 437.81698608398, 30.226253509521, 0, 90.500061035156, 0); CreateObject(1008, -1984.1997070313, 436.64154052734, 30.228116989136, 0, 88.5, 0); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new cartype = GetPlayerVehicleID(playerid); new State=GetPlayerState(playerid); if(strcmp(cmdtext, "/neonshop", true) == 0) { SetPlayerInterior(playerid,0); { if(State!=PLAYER_STATE_DRIVER) { SetPlayerPos(playerid,-1980.0026,474.2643,29); } else if(IsPlayerInVehicle(playerid, cartype) == 1) { SetVehiclePos(cartype,-1980.0026,474.2643,29); SetVehicleZAngle(cartype,180.1530); } else { SetPlayerPos(playerid,-1980.0026,474.2643,29); } SendClientMessage(playerid, COLOR_YELLOW,"Type /neon in the garage to pick a neon!"); } return 1; } if (strcmp(cmdtext, "/neon", true)==0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27)) { ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel"); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0); } return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 8899) { if(response) { if(listitem == 0) { //blue 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); } if(listitem == 1) { //red 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 installed"); } if(listitem == 2) { //green 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 installed"); } if(listitem == 3) { //white 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 installed"); } if(listitem == 4) { //pink 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 installed"); } if(listitem == 5) { //yellow 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 installed"); } if(listitem == 6) { //police SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon12", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, "neon13", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "neon installed"); } if(listitem == 7) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "interior", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, "interior1", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "interior"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, "interior1"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, "Interior lights installed"); } if(listitem == 8) { //back SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "back", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, "back1", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, "back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, "Back neon installed"); } if(listitem == 9) { //front SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, "Front neon installed"); } if(listitem == 10) { //undercover SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "undercover", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, "undercover1", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, "Undercover lights installed"); } if(listitem == 11) { //remove neon 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, "neon11")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon12")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon13")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "interior")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "interior1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "back")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "back1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "front")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "front1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "undercover")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "undercover1")); DeletePVar(playerid, "Status"); } } } return 1; } public OnPlayerConnect() { new playerid; SendClientMessage(playerid, COLOR_YELLOW,"This server is using neon system by [EDT]Quattro. Use /neonshop!"); return 1; } //do not remove credits please...
  22. Pentru eroarea aia descarca includele de aici si pune-l in Pawno/Include Posteaza comanda aia.
  23. Ghici ciuperca ce-i. Ceva de genu e la tine. Pune liniile, ca nu suntem la Loto ca sa ghicim.
  24. http://www.sa-mp.ro/forum/index.php/topic,5356.0.html
  25. Nu ai scris un include la inceputul scriptului. #include <numele>
×
×
  • 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.