Jak napisać, że kiedy cvar wynosi "1", wtedy przy komendzie "/test" wyswietli tekst? A jeżeli 0 to tego nie wyświetli? Chodzi mi o True/False czy coś w ten deseń
#include <amxmodx> #include <amxmisc> #include <colorchat> #define PLUGIN "nom" #define VERSION "0.1" #define AUTHOR "zaden" new pcvar_test; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) pcvar_test = register_cvar("gyp_test", "1"); register_clcmd("say /test", "testcmd"); } public testcmd(id) { new coss = get_pcvar_num(pcvar_test); if(coss == 1) //nie wiem co dalej ColorChat(id, BLUE, "komenda test!") }