hlmod.hu
https://hlmod.hu/

Console parancs BLOKKOLO PLUGIN!
https://hlmod.hu/viewtopic.php?f=29&t=11121
Oldal: 2 / 4

Szerző:  Axion [ 2013.09.29. 13:15 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

jojo én csak anonymus kérését csináltam meg ;)

Szerző:  Anonymous1337 [ 2013.09.29. 14:11 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

kiki írta:
A cl_minmodels nem egy parancs, hanem egy cvar. Statust nem lehet tiltani.

Te valahogy mégis megcsináltad.. Pm be leírod nekem? ha nem publikus.

Ui;. Irtam pm et kiki, kerlek valaszolj...alairasodhoz füzodik. ;)

Szerző:  Vinnice [ 2013.09.29. 14:12 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

Szerintem [profil]kiki[/profil] nem blokkolta a parancsot, csupán csak megváltoztatta az üzenetet.

Szerző:  Anonymous1337 [ 2013.09.29. 14:14 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

Vinnice írta:
Szerintem [profil]kiki[/profil] nem blokkolta a parancsot, csupán csak megváltoztatta az üzenetet.

Mind egy hogy, a lényeg az, hogy a statust blokkolja..teljesen mindegy hogy hogy..

Szerző:  Vinnice [ 2013.09.29. 14:35 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

TESZTELVE!
Edit: A plugin első futásakor dob egy error-t ,akkor újra kell indítani a szervert, vagy mapot váltani.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <orpheu_memory>
  4.  
  5. new fajl[256]
  6.  
  7. public plugin_init()
  8. {
  9. register_plugin("Status", "1.0", "#CantStopWontStop")
  10.  
  11. register_concmd("status","blockedstatus")
  12. }
  13.  
  14. public blockedstatus(id)
  15. {
  16. client_print(id, print_console, "#CantStopWontStop: Status Parancs Blokkolva!"); //ha valaki beírja azt ,hogy status kiírom neki ezt a szöveget.
  17. return PLUGIN_HANDLED;
  18. }
  19.  
  20. public plugin_precache()
  21. {
  22. get_configsdir(fajl, 255);
  23. format(fajl, 255, "%s/orpheu/memory/CantStopWontStop", fajl);
  24. create();
  25.  
  26. if(is_module_loaded("orpheu"))
  27. {
  28. OrpheuMemoryReplace("CantStopWontStop", 0, "status", "eqwlva"); //a status parancsot felcseréltem a eqwlva paranccsal.
  29. }
  30. else
  31. {
  32. log_to_file("orpheu_cantstopme.log", "A plugin futtatasahoz, Orpheu kell!")
  33. }
  34. }
  35.  
  36. public create()
  37. {
  38. if(!file_exists(fajl))
  39. {
  40. write_file(fajl, "{")
  41. write_file(fajl, " ^"name^" : ^"CantStopWontStop^",")
  42. write_file(fajl, " ^"library^" : ^"engine^",")
  43. write_file(fajl, " ^"type^" : ^"string^",")
  44. write_file(fajl, " ^"memoryType^" : ^"data^"")
  45. write_file(fajl, "}")
  46. }
  47. }

Aki rájön az "eqwlva" parancsra az okos :D (akkor kiírja azt amit a status parancsnál szokott)

Szerző:  Anonymous1337 [ 2013.09.29. 14:39 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

Szep munka Vinnice!

Nagyon köszönöm!

Szerző:  expert [ 2013.09.29. 16:08 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

nem fordul le !
SMA Forráskód: [ Mindet kijelol ]
  1. Welcome to the AMX Mod X 1.8.1-300 Compiler.
  2. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
  3.  
  4. status_parancstiltasa.sma(40) : error 017: undefined symbol "fajlhelye"
  5. status_parancstiltasa.sma(40) : warning 215: expression has no effect
  6. status_parancstiltasa.sma(40) : error 001: expected token: ";", but found ")"
  7. status_parancstiltasa.sma(40) : error 029: invalid expression, assumed zero
  8. status_parancstiltasa.sma(40) : fatal error 107: too many error messages on one line
  9.  
  10. Compilation aborted.
  11. 4 Errors.
  12. status_parancstiltasa.amx (compile failed).

Szerző:  Vinnice [ 2013.09.29. 16:09 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

javítottam.

Szerző:  Anonymous1337 [ 2013.09.29. 16:21 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

expert írta:
nem fordul le !
SMA Forráskód: [ Mindet kijelol ]
  1. Welcome to the AMX Mod X 1.8.1-300 Compiler.
  2. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
  3.  
  4. status_parancstiltasa.sma(40) : error 017: undefined symbol "fajlhelye"
  5. status_parancstiltasa.sma(40) : warning 215: expression has no effect
  6. status_parancstiltasa.sma(40) : error 001: expected token: ";", but found ")"
  7. status_parancstiltasa.sma(40) : error 029: invalid expression, assumed zero
  8. status_parancstiltasa.sma(40) : fatal error 107: too many error messages on one line
  9.  
  10. Compilation aborted.
  11. 4 Errors.
  12. status_parancstiltasa.amx (compile failed).


Most lefordul expert? tabletrol nem tudom megnezni :S

Vinnice: miért dob errort elso inditaskor? ez miért van?

Szerző:  Vinnice [ 2013.09.29. 16:30 ]
Hozzászólás témája:  Re: Console parancs BLOKKOLO PLUGIN!

Azért ,mert akkor még nincs meg az a fájl ( plugin indulása után,hozza létre) amit létrehoz ahhoz ,hogy lecserélje a két stringet.

Oldal: 2 / 4 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/