hlmod.hu
https://hlmod.hu/

Csak kés
https://hlmod.hu/viewtopic.php?f=101&t=11921
Oldal: 1 / 1

Szerző:  Beast [ 2008.05.03. 15:56 ]
Hozzászólás témája:  Csak kés

Plugin Neve:
Csak kés
Plugint készitette:
SilverTide
Játék:
Counter-Strike
Kategória:
Szórakoztató
Eredeti link:
Nincs megadva
Jóváhagyó:


Lehet szavazni, hogy legyen csak kés vagy az admin ki be kapcsolhatja.
Parancsok:
amx_knivesonly <1|0> (Default: 0)
say /voteknivesonly


SMA
AMXX
*A fordítás a aghl.ru oldalon történik.

    Szerző:  buster [ 2010.05.28. 16:32 ]
    Hozzászólás témája:  Re: Csak kés | Mind | Ismeretlen

    console_print ( id, "Csak ke's mo'd kikapcsolva" );
    show_hudmessage ( 0, "Csak ke's mo'd bekapcsolva." );
    Fordítási hiba...xD

    Szerző:  kiki [ 2013.12.16. 06:50 ]
    Hozzászólás témája:  Re: Csak kés | Mind | Ismeretlen

    buster írta:
    console_print ( id, "Csak ke's mo'd kikapcsolva" );
    show_hudmessage ( 0, "Csak ke's mo'd bekapcsolva." );
    Fordítási hiba...xD


    Na ja, akinek kell, úgyis átírja.

    Szerző:  DreamFox [ 2013.12.16. 18:18 ]
    Hozzászólás témája:  Re: Csak kés

    Beast írta:
    Lehet szavazni, hogy legyen csak kés vagy az admin ki be kapcsolhatja.
    Parancsok:
    amx_knivesonly <1|0> (Default: 0)
    say /voteknivesonly

    Nagyszerű! :)

    Szerző:  erossnandor32 [ 2013.12.21. 19:21 ]
    Hozzászólás témája:  Re: Csak kés

    Ugyanezt nem tudná valaki megcsinálni, hogy pisztollya? ugyanigy mint ezt, nincs cvar, s semmise csak a plugin s a parancs! Előre is köszönöm

    Szerző:  CLaNLoRrD [ 2013.12.21. 22:23 ]
    Hozzászólás témája:  Re: Csak kés

    Majd lehet feltöltök egyet cvarokkal amivel lehet állítani csak kés/piszotly/ak/m4 stb.

    Szerző:  NiGGeR-BorZ [ 2013.12.21. 22:38 ]
    Hozzászólás témája:  Re: Csak kés

    Ezt próbáld ki kis pisztollyal fogtok menni gyakorlatilag.
    Még nem próbáltam.
    (glock 18)

    SMA Forráskód: [ Mindet kijelol ]
    1. #include <amxmodx>
    2. #include <amxmisc>
    3. #include <fun>
    4.  
    5. new pstlonly = 0;
    6. new choice[2];
    7. new votepistolonly[] = "\yCsak pisztoly?\w^n^n1. Igen^n2. Nem";
    8.  
    9. public plugin_init () {
    10. register_concmd ( "amx_pistolonly", "cmdknives_only", ADMIN_LEVEL_A, "- Be/Kikapcsolja a csak pisztoly mo'dot." );
    11. register_concmd ( "amx_votepistolonly", "cmdvoteknives_only", ADMIN_VOTE, "- Csak pisztoly szavaza's indita'sa(Admin)." );
    12. register_concmd ( "say /votepisztoly", "cmdvote", ADMIN_VOTE, "- Csak pisztoly szavaza's indita'sa." );
    13. register_menucmd ( register_menuid("\yCsak pisztoly?"), (1<<0)|(1<<1), "count_votes" );
    14. register_event ( "CurWeapon", "glock18", "b" );
    15. }
    16.  
    17. public cmdknives_only ( id ) {
    18. new arg[2];
    19. read_argv ( 1, arg, 1 );
    20. set_hudmessage ( 200, 100, 0, -1.0, 0.25, 0, 1.0, 5.0, 0.1, 0.2, 2 );
    21.  
    22. if ( equal ( arg, "1" ) ) {
    23. pstlonly = 1;
    24. client_cmd ( id, "weapon_glock18" );
    25. console_print ( id, "Csak pisztoly mo'd kikapcsolva" );
    26. show_hudmessage ( 0, "Csak pisztoly mo'd bekapcsolva." );
    27. } else if ( equal ( arg, "0" ) ) {
    28. pstlonly = 0
    29. console_print ( id, "Csak pisztoly mo'd ki van kapcsolva" );
    30. show_hudmessage ( 0, "Csak pisztoly mo'd ki van kapcsolva" );
    31. } else {
    32. if ( pstlonly == 0 ){
    33. console_print ( id, "Haszna'lat: amx_pistolonly 1 = Be 0 = Ki Jelenleg: Ki" );
    34. }
    35. if ( pstlonly == 1 ){
    36. console_print ( id, "Haszna'lat: amx_pistolonly 1 = Be 0 = Ki Jelenleg: Be" );
    37. }
    38. }
    39.  
    40. return PLUGIN_CONTINUE;
    41. }
    42.  
    43. public knife ( id ) {
    44. if ( pstlonly == 0 ) {
    45. // Do Nothing;
    46. }
    47. if ( pstlonly == 1 ) {
    48. new clip, ammo;
    49. new usersweapon = get_user_weapon ( id, clip, ammo );
    50.  
    51. if ( usersweapon == CSW_GLOCK18 ) {
    52. // Do Nothing
    53. } else {
    54. // Bury player and strip of weapons, then return to starting position
    55. new origin[3];
    56. get_user_origin ( id, origin );
    57. origin[2] -= 500;
    58. set_user_origin ( id, origin );
    59. new iwpn, iwpns[32], nwpn[32];
    60. get_user_weapons ( id, iwpns, iwpn );
    61. for ( new a = 0; a < iwpn; ++a ) {
    62. get_weaponname ( iwpns[a], nwpn, 31 );
    63. engclient_cmd ( id, "drop", nwpn );
    64. }
    65. new origin2[3];
    66. get_user_origin ( id, origin2 );
    67. origin2[2] += 500;
    68. set_user_origin ( id, origin2 );
    69. // Select the knife
    70. client_cmd ( id, "weapon_glock18" );
    71. }
    72. }
    73. return PLUGIN_CONTINUE;
    74. }
    75.  
    76. public cmdvote ( id ) {
    77. new Float:voting = get_cvar_float ( "amx_last_voting" );
    78. if ( voting > get_gametime () ) {
    79. client_print ( id, print_chat, "*Jelenleg fut a szavaza's.*" );
    80. return PLUGIN_HANDLED;
    81. }
    82. if ( voting && voting + get_cvar_float ( "amx_vote_delay" ) > get_gametime() ) {
    83. client_print ( id, print_chat, "*Va'rj egy kicsit, miel'o'tt u'jra szavazna'l.*" );
    84. return PLUGIN_HANDLED;
    85. }
    86. new menu_msg[256];
    87. new name[32];
    88. format ( menu_msg, 255, votepistolonly );
    89. new Float:votetime = get_cvar_float("amx_vote_time") + 10.0;
    90. get_user_info ( id, "name", name, 31 );
    91. set_cvar_float ( "amx_last_voting", get_gametime() + votetime );
    92. show_menu ( 0, (1<<0)|(1<<1), menu_msg, floatround ( votetime ) );
    93. set_hudmessage ( 200, 0, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 2 );
    94.  
    95. show_hudmessage ( 0, "%s elinditotta a csak pisztoly modot", name );
    96. set_task ( votetime, "check_the_votes" );
    97. choice[0] = choice[1] = 0;
    98. return PLUGIN_HANDLED;
    99. }
    100.  
    101. public cmdvoteknives_only ( id ) {
    102. new Float:voting = get_cvar_float ( "amx_last_voting" );
    103. if ( voting > get_gametime () ) {
    104. client_print ( id, print_chat, "*A szavaza's ma'r fut.*" );
    105. return PLUGIN_HANDLED;
    106. }
    107. if ( voting && voting + get_cvar_float( "amx_vote_delay" ) > get_gametime () ) {
    108. client_print ( id, print_chat, "*Va'rj egy kicsit, miel'o'tt u'jra szavazna'l.*" );
    109. return PLUGIN_HANDLED;
    110. }
    111. new menu_msg[256];
    112. format ( menu_msg, 255, votepistolonly );
    113. new Float:votetime = get_cvar_float ( "amx_vote_time" ) + 10.0;
    114. set_cvar_float ( "amx_last_voting", get_gametime() + votetime );
    115. show_menu ( 0, (1<<0)|(1<<1), menu_msg, floatround ( votetime ) );
    116. set_task ( votetime, "check_the_votes" );
    117. client_print ( 0, print_chat, "*A szavaza's elindult.*" );
    118. choice[0] = choice[1] = 0;
    119. return PLUGIN_HANDLED;
    120. }
    121.  
    122. public count_votes ( id, key ) {
    123. if ( get_cvar_float ( "amx_vote_answers" ) ) {
    124. new name[32];
    125. get_user_name ( id, name, 31 );
    126. client_print ( 0, print_chat, "* %s a(z) %s opcio'ra szavazott", name, key ? "csak pisztoly" : "a csak pisztoly" );
    127. }
    128. ++choice[key];
    129. return PLUGIN_HANDLED;
    130. }
    131.  
    132. public check_the_votes ( id ) {
    133. if ( choice[0] > choice[1] ) {
    134. server_cmd ( "amx_pistolonly 1" );
    135. client_print ( 0, print_chat, "* A csak pisztoly mo'd megszavazva. (On ^"%d^") (Off ^"%d^"). *", choice[0], choice[1] );
    136. } else {
    137. server_cmd ( "amx_pistolonly 0" );
    138. client_print ( 0, print_chat, "* A csak pisztoly mo'd elutasitva. (On ^"%d^") (Off ^"%d^"). *", choice[0], choice[1] );
    139. }
    140. return PLUGIN_CONTINUE;
    141. }

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