hlmod.hu
https://hlmod.hu/

demo felvétele amx parancsra
https://hlmod.hu/viewtopic.php?f=29&t=27163
Oldal: 1 / 1

Szerző:  longhorn [ 2017.01.31. 17:41 ]
Hozzászólás témája:  demo felvétele amx parancsra

Hali

valaki nem tud adni 1 demo felvevőt, ami amx parancsra indít demot??

segítséget előre köszi :)

Szerző:  exodus [ 2017.01.31. 19:40 ]
Hozzászólás témája:  Re: demo felvétele amx parancsra

Ez nem amx parancsra indul de próbáld.
Beírod /start akkor indul a demo.


► Spoiler mutatása


Forrás: http://hlmod.hu/viewtopic.php?f=101&t=14475

Szerző:  The Peace [ 2017.01.31. 20:36 ]
Hozzászólás témája:  Re: demo felvétele amx parancsra

Egyszerűen megoldható "amx" parancsra , mert szerintem te ezt úgy érted hogy PL: amx_indit (azaz Console-s megoldás, vagy nem?)


Így oldható meg(plugin_init) :

  1. register_concmd("amx_indit","Record")



Teszteld:

  1. #include <amxmodx>
  2.  
  3. #define NAME = "Parancsra Demo Record"
  4.  
  5. public plugin_init() {
  6.     register_plugin( "NAME", "0.0.0", "ThePeace" )
  7.  
  8.     register_concmd("amx_indit","Inditsad")
  9. }
  10.  
  11. public Inditsad( id ){
  12.     if( !is_user_connected( id ))
  13.         return
  14.        
  15.     client_cmd( id, "stop; record ^"szerveredneve^"") // "szerveredneve" <- ez az lesz hogy mi legyen a demó neve, persze megoldható definálva is.
  16. }

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