hlmod.hu
https://hlmod.hu/

Spectator sebbeség
https://hlmod.hu/viewtopic.php?f=29&t=14733
Oldal: 1 / 1

Szerző:  Gatshow [ 2014.03.02. 14:55 ]
Hozzászólás témája:  Spectator sebbeség

Sziasztok!
Egy olyan plugin megoldható hogy ha specbe van a játékos és free lookban mozog akkor annak a sebességét változtathassa egy paranccsal? Például: "/speed"
Előre is köszi!

Szerző:  Badboy.killer [ 2014.03.02. 15:05 ]
Hozzászólás témája:  Re: Spectator sebbeség

https://forums.alliedmods.net/showthread.php?t=161889
a parancsot még bele kell írni

Szerző:  blasi01 [ 2014.03.02. 15:09 ]
Hozzászólás témája:  Re: Spectator sebbeség

Hmmmmm
figyu:
Ezt ha a konzolba beírod akkor növeled a specben freelokba a speedet "sv_specspeed <Érték>"
____________
I'm fucking stupid

Szerző:  Gatshow [ 2014.03.02. 15:11 ]
Hozzászólás témája:  Re: Spectator sebbeség

blasi01 írta:
Hmmmmm
figyu:
Ezt ha a konzolba beírod akkor növeled a specben freelokba a speedet "sv_specspeed <Érték>"

Lehet de ha ezt a többiek nem tudják az nekem csak haszon ;)

Szerző:  Anonymous1337 [ 2014.03.02. 15:24 ]
Hozzászólás témája:  Re: Spectator sebbeség

Blokkolni is lehet cmd parancsokat:

SMA Forráskód: [ Mindet kijelol ]
  1. #include amxmodx
  2.  
  3. new Array:g_Stroke = Invalid_Array;
  4.  
  5. public client_command(Client)
  6. {
  7. if (!ArraySize(g_Stroke))
  8. {
  9. return PLUGIN_CONTINUE;
  10. }
  11.  
  12. static Command[64], Stroke[64], Size = 0;
  13.  
  14. read_argv(0, Command, charsmax(Command));
  15.  
  16. for (Size = 0; Size < ArraySize(g_Stroke); Size++)
  17. {
  18. ArrayGetString(g_Stroke, Size, Stroke, charsmax(Stroke));
  19.  
  20. if (equali(Command, Stroke))
  21. {
  22. client_print(Client, print_center, "[BLOKKOLVA] Ez a parancs blokkolva van !");
  23.  
  24. return PLUGIN_HANDLED;
  25. }
  26. }
  27.  
  28. return PLUGIN_CONTINUE;
  29. }
  30.  
  31. public plugin_init()
  32. {
  33. register_plugin("cmd parancsok blokkolasa", "1.0", "Anonymous1337 & DiGiteLord");
  34. }
  35.  
  36. public plugin_cfg()
  37. {
  38. static File = 0, Buffer[64], Location[256];
  39.  
  40. g_Stroke = ArrayCreate(64);
  41.  
  42. get_localinfo("amxx_configsdir", Location, charsmax(Location));
  43.  
  44. add(Location, charsmax(Location), "/parancs_blokkolasa.ini ");
  45.  
  46. if (!file_exists(Location))
  47. {
  48. File = fopen(Location, "w+"); // File írása
  49.  
  50. if (File)
  51. {
  52. fclose(File);
  53. }
  54. }
  55.  
  56. File = fopen(Location, "rt"); // File olvasasa.
  57.  
  58. if (File)
  59. {
  60. while (!feof(File))
  61. {
  62. fgets(File, Buffer, charsmax(Buffer));
  63.  
  64. trim(Buffer);
  65.  
  66. if (!strlen(Buffer) || Buffer[0] == ';')
  67. {
  68. continue;
  69. }
  70.  
  71. ArrayPushString(g_Stroke, Buffer);
  72. }
  73.  
  74. fclose(File);
  75. }
  76. }


Vagy átírni az eredetit, vagy is kicserélni. Pl: cl_crosshairscale kicseréled erre: cl_celkeresztmerete

Megkeresem ezt a kódot, valahol megvan még a fórumon, az ziher. :)

Gatshow írta:
blasi01 írta:
Hmmmmm
figyu:
Ezt ha a konzolba beírod akkor növeled a specben freelokba a speedet "sv_specspeed <Érték>"

Lehet de ha ezt a többiek nem tudják az nekem csak haszon ;)

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