Witam, chciałbym dziś wgrać na serwer free lvl pod cod moda. Jednak chciałbym, aby tylko gracze nowi lub świeżacy mogli tego używać, np. ma ktoś 500 lvl i jak wpisze komendę /freelvl to go nie dostaje. Proszę o dodanie tego, żeby na 500 lvl i więcej nie można było tego wpisać. Pozdrawiam.
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <codmod>
new cvar_free_level;
public plugin_init()
{
    register_plugin("COD Darmowy Level", "1.0", "Mentos");
    
    register_clcmd("say /dajlvl", "DodajLVL");
    register_clcmd("say /dodajlvl", "DodajLVL");
    register_clcmd("say /freelvl", "DodajLVL");
    cvar_free_level = register_cvar("cod_freelevel", "10");
}
public DodajLVL(id)
{
    if (cod_get_user_level(id) < get_pcvar_num(cvar_free_level))
    cod_set_user_xp(id, cod_get_level_xp(get_pcvar_num(cvar_free_level)));
}
					
					

 Forum
 
Forum
 Użytkownicy
 
Użytkownicy
 Kalendarz
 
Kalendarz
 Dodatki SourceMod
 
Dodatki SourceMod



 
	 
					










