hlmod.hu
https://hlmod.hu/

Flashlight
https://hlmod.hu/viewtopic.php?f=9&t=27958
Oldal: 1 / 1

Szerző:  Stew [ 2017.07.16. 10:58 ]
Hozzászólás témája:  Flashlight

Sziasztok!

Egy kérdéssel fordulnék felétek.

Hogyan tudnám megoldani, hogy a Zseblámpa (Flashlight) ne "merüljön" le? Tehát végtelen ideig müködjön.

Szerző:  regener [ 2017.07.16. 12:05 ]
Hozzászólás témája:  Re: Flashlight

  1. #include < amxmodx >
  2. #include < fakemeta >
  3.  
  4. const m_iFlashBattery = 244;
  5.  
  6. public plugin_init( ) {
  7.     register_plugin( "Infinity Flash Bat", "1.0", "xPaw" );
  8.    
  9.     register_message( get_user_msgid( "FlashBat" ),   "MsgFlashBat" );
  10.     register_message( get_user_msgid( "Flashlight" ), "MsgFlashLight" );
  11. }
  12.  
  13. public MsgFlashLight( const MsgId, const MsgType, const id )
  14.     set_msg_arg_int( 2, ARG_BYTE, 100 );
  15.  
  16. public MsgFlashBat( const MsgId, const MsgType, const id ) {
  17.     if( get_msg_arg_int( 1 ) < 100 ) {
  18.         set_msg_arg_int( 1, ARG_BYTE, 100 );
  19.        
  20.         set_pdata_int( id, m_iFlashBattery, 100, 5 );
  21.     }
  22. }

Szerző:  Stew [ 2017.07.16. 14:51 ]
Hozzászólás témája:  Re: Flashlight

Köszönöm.

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