Jump to content

NEoNX

Membru
  • Posts

    48
  • Joined

  • Last visited

    Never

Everything posted by NEoNX

  1. Pai cel mai usor mod este sa cauti War in gm , si incepi sa stergi . Eu asa fac deobicei ! Enjoy :)
  2. Nick:NEoNX Problema:Cand imi cumpar o masina , imi arata in /stats ca am cumparato , dar in cars.cfg nu apare . Erori / warnings:Nu am nimic .. Lini/script:Nu prea stiu ce as putea arata Ai incercat sa rezolvi singur ?:Da , ma chiunui de la 8 ..
  3. Vezi ca ai niste functii care au mai multe optiuni decat trebuie .
  4. Si cum ar trebui sa arate acea variabila ?
  5. Nick:NEoNX Problema:Nu pot sa salvez tunningu' la masina personala .. folosesc sistemul clasic cu cars.cfg Erori / warnings:- Lini/script:- Ai incercat sa rezolvi singur ?:Da ..
  6. Eu am pus timer-ul la OnPlayerConnect , si merge . Insa nu trebuie cu SetPlayerWantedLevel sau PlayerInfo[playerid][pWantedLevel] = etc . Trebuie pusa functia WantedLevel[playerid] -= 1; si va merge . Topic Closed
  7. Pai am incercat dupa cum mi-ati zis : [pawn]new WLD; forward WantedLevelDown(playerid); public WantedLevelDown(playerid) { if(GetPlayerWantedLevel(playerid) == 10) { PlayerInfo[playerid][pWantedLevel] = 9; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 9"); } else if(GetPlayerWantedLevel(playerid) == 9) { PlayerInfo[playerid][pWantedLevel] = 8; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 8"); } else if(GetPlayerWantedLevel(playerid) == 8) { PlayerInfo[playerid][pWantedLevel] = 7; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 7"); } else if(GetPlayerWantedLevel(playerid) == 7) { PlayerInfo[playerid][pWantedLevel] = 6; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 6"); } else if(GetPlayerWantedLevel(playerid) == 6) { PlayerInfo[playerid][pWantedLevel] = 5; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 5"); } else if(GetPlayerWantedLevel(playerid) == 5) { PlayerInfo[playerid][pWantedLevel] = 4; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 4"); } else if(GetPlayerWantedLevel(playerid) == 4) { PlayerInfo[playerid][pWantedLevel] = 3; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 3"); } else if(GetPlayerWantedLevel(playerid) == 3) { PlayerInfo[playerid][pWantedLevel] = 2; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 2"); } else if(GetPlayerWantedLevel(playerid) == 2) { PlayerInfo[playerid][pWantedLevel] = 1; SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 1"); } else if(GetPlayerWantedLevel(playerid) == 1) { PlayerInfo[playerid][pWantedLevel] = 0; KillTimer(WLD); SendClientMessage(playerid, COLOR_YELLOW, "Current Wanted Level: 0"); } return 1; } WLD = SetTimer("WantedLevelDown", 120000, false);[/pawn] dar nu prea merge .. Am facut-o rau ?
  8. Nick:NEoNX Problema:As vrea sa stiu cum as putea sa fac un sistem care sa scada wanted-ul jucatorului la un interval de 2-3 minute . Erori / warnings:- Lini/script:- Ai incercat sa rezolvi singur ?:nu . acum mi-a venit ideea ..
  9. Hmm .. cauta cel mai sigur la OnPlayerConnect . Sau daca nu , daca ai sistemul de register/login pe dialog , cauta dialogul cu register si apoi la OnDialogResponse .
  10. [pawn]else if(MissionCheckpoint[playerid] > 0 && PlayMission[kToggle] == 1)//Missions + Checkpoint on toggle { RingTone[playerid] = 20; switch(MissionCheckpoint[playerid]) { case 1: { format(string, sizeof(string), "%s", PlayMission[kGText1]); GameTextForPlayer(playerid, string, 8000, 3); format(string, sizeof(string), "%s", PlayMission[kText4]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText5]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText6]); SendClientMessage(playerid, COLOR_YELLOW2, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, PlayMission[kCP2][0], PlayMission[kCP2][1], PlayMission[kCP2][2], 8); MissionCheckpoint[playerid] = 2; } case 2: { format(string, sizeof(string), "%s", PlayMission[kGText2]); GameTextForPlayer(playerid, string, 8000, 3); format(string, sizeof(string), "%s", PlayMission[kText7]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText8]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText9]); SendClientMessage(playerid, COLOR_YELLOW2, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, PlayMission[kCP3][0], PlayMission[kCP3][1], PlayMission[kCP3][2], 8); MissionCheckpoint[playerid] = 3; } case 3: { format(string, sizeof(string), "%s", PlayMission[kGText3]); GameTextForPlayer(playerid, string, 8000, 3); format(string, sizeof(string), "%s", PlayMission[kText10]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText11]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText12]); SendClientMessage(playerid, COLOR_YELLOW2, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, PlayMission[kCP4][0], PlayMission[kCP4][1], PlayMission[kCP4][2], 8); MissionCheckpoint[playerid] = 4; } case 4: { format(string, sizeof(string), "%s", PlayMission[kGText4]); GameTextForPlayer(playerid, string, 8000, 3); format(string, sizeof(string), "%s", PlayMission[kText13]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText14]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText15]); SendClientMessage(playerid, COLOR_YELLOW2, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, PlayMission[kCP5][0], PlayMission[kCP5][1], PlayMission[kCP5][2], 8); MissionCheckpoint[playerid] = 5; } case 5: { format(string, sizeof(string), "%s", PlayMission[kGText5]); GameTextForPlayer(playerid, string, 8000, 3); format(string, sizeof(string), "%s", PlayMission[kText16]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText17]); SendClientMessage(playerid, COLOR_YELLOW2, string); format(string, sizeof(string), "%s", PlayMission[kText18]); SendClientMessage(playerid, COLOR_YELLOW2, string); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, PlayMission[kCP6][0], PlayMission[kCP6][1], PlayMission[kCP6][2], 8); MissionCheckpoint[playerid] = 6; } case 6: { format(string, sizeof(string), "%s", PlayMission[kGText6]); GameTextForPlayer(playerid, string, 8000, 3); format(string, sizeof(string), "..:: Mission Passed : %s | Reward received: $%d ::..", PlayMission[kTitle], PlayMission[kReward]); SendClientMessage(playerid, COLOR_GREEN, string); DisablePlayerCheckpoint(playerid); GivePlayerMoney(playerid, PlayMission[kReward]); PlayerInfo[playerid][pMissionNr] = PlayerOnMission[playerid]; MissionCheckpoint[playerid] = 0; PlayerOnMission[playerid] = 0; } } }[/pawn] @Gireada uite asta e la OnPlayerEnterCheckPoint .. @Sarpe sa stii ca nu e o idee rea . dar as vrea sa arate ca si pe alte servere ..
  11. Am si eu o problema cu sistemul de misiuni .. cand intru in primul checkpoint , dispare tot si e ca si cand nu am inceput misiunea .. ati mai patit ? cum as putea rezolva ?
  12. Am si eu o intrebare . Cum as putea face un top al playerilor care au cel mai mult scor ? Maxim 10 playeri ... Ma puteti ajuta ?
  13. Nu mai urlati la el degeaba ! Are un buguletz . Trebuie pus primul la linia : [pawn]filterscripts[/pawn] Pentru asi initializa casele . Apoi poate fi trecut al doilea sau nush cum aveti voi . :)
  14. Salutare Sa:Mp.ro...Am pus si eu un sistem de reaction test ( cine scrie primul ) intr-un fs.Totul bine pana aici.Dar in ladmin4v2 , la OnPlayerText am facut sa arate la chat daca e admin ,vip si blablabla. Dar daca un admin sau vip incearca sa castige acel test , scrie si nu se intampla nimic ... de ce ? Imi puteti da un sfat sau un ajutor , pentru ca stiu ca Echipa Sa:Mp.ro ma ajutat mereu.
  15. Gireada tot respectul pentru tine,FS pe care le faci si munca depusa pentru sa-mp.ro !! +1 de la mine
  16. [pawn]dcmd_star(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3){//functie care verifica daca player-ul are level 3 ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"{FA0C0C}Star Command Panel", "{070FEF}Do you want to place a hidden {E8EF07}STAR{070FEF}\nhere for the event?", "Yes", "No");//the dialog } else { SendClientMessage(playerid, red, "Only an Admin Level 3 can use this command.");//functia care raspunde daca player-ul nu are level 3 } return 1;[/pawn] Partea cu raspunsul dialogului o faci singur ;)
  17. NEoNX

    Error

    Uitete peste tot sa nu fi uitat vreo paranteza sau ceva...
  18. Trebuie sa folosesti un anumit tip de dialog.In cazul acesta trebuie sa folosesti DIALOG_STYLE_PASSWORD . Deci de genu asta : ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Te rugam sa introduci parola:");
  19. Carcotasule ) Foarte Smeker acest script ! Imi place la nebunie ,dar daca ii faci si sa mearga pe masini esti cel mai tare :-)
  20. Deci tu vrei sa il faci pentru level 3 admin.Ok,te ajut eu ! Spune-mi ce sistem de admin folosesti ?
  21. Deci am chestia asta : [pawn]//KillingSpree new DBResult:Result, Field[ 50 ], string[266]; format(Query,256,"SELECT `Key` FROM `KSDatabase` WHERE `Nume` = '%s'",PlayerZzName(playerid); Result = db_query( Database, Query ); if ( db_num_rows( Result ) ) { db_get_field_assoc( Result, "KillingSpree", Field, sizeof( Field ) ); KillingSpree{ playerid } = strval( Field ); db_get_field_assoc( Result, "BestKillingSpree", Field, sizeof( Field ) ); bKillingSpree{ playerid } = strval( Field ); } else { format( Query, 256, "INSERT INTO `KSDatabase` VALUES(NULL,'%s','%d','%d')", PlayerZzName( playerid ), 0, 0 ); db_free_result( db_query( Database, Query ) ); KillingSpree{ playerid } = 0; bKillingSpree{ playerid } = 0; } db_free_result( Result );[/pawn] Si imi da urmatoarele erori... : [pawn]C:\Documents and Settings\13liviu\My Documents\Descãrcãri\filehost_sssssssssssssssssssssssssss\sssssssssssssssssssssssssss\gamemodes\EoS.pwn(3551) : error 012: invalid function call, not a valid address C:\Documents and Settings\13liviu\My Documents\Descãrcãri\filehost_sssssssssssssssssssssssssss\sssssssssssssssssssssssssss\gamemodes\EoS.pwn(3551) : warning 215: expression has no effect C:\Documents and Settings\13liviu\My Documents\Descãrcãri\filehost_sssssssssssssssssssssssssss\sssssssssssssssssssssssssss\gamemodes\EoS.pwn(3551) : error 001: expected token: ";", but found ")" C:\Documents and Settings\13liviu\My Documents\Descãrcãri\filehost_sssssssssssssssssssssssssss\sssssssssssssssssssssssssss\gamemodes\EoS.pwn(3551) : error 029: invalid expression, assumed zero C:\Documents and Settings\13liviu\My Documents\Descãrcãri\filehost_sssssssssssssssssssssssssss\sssssssssssssssssssssssssss\gamemodes\EoS.pwn(3551) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn] si linia 3551 este : [pawn]format(Query,256,"SELECT `Key` FROM `KSDatabase` WHERE `Nume` = '%s'",PlayerZzName(playerid);[/pawn]
×
×
  • 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.