LondoN eXtream 110 Posted March 21, 2015 Share Posted March 21, 2015 (edited) In acest tutorial vom invata cum creem si folosim un cvar! Pentru inceput facem o variabila. new plugin_on Adaugam la Initializare public plugin_init() { plugin_on = register_cvar("amx_on", "1") // 1 - Activat | 0 - Dezactivat } Acum creem un public dorit de noi public client_connect(id) { if(get_pcvar_num(plugin_on) == 0) { return; // Daca cvar-ul este setat pe 0 nu se va intampla nimic. plugin_on reprezinta variabila } client_cmd(id, "name CVAR TEST!") } Edited March 21, 2015 by StefanBv Link to comment Share on other sites More sharing options...
Recommended Posts