hi,
i tried to make who in level 5 he will get speed
For zombie 20
for human 50
but it dose not work
can someone tell me whats the problem?
Code:
#include <zombie_escape>
#include <crxranks>
#include <fun>
#define ITEMS1 5
public plugin_init()
{
register_plugin("[ZE] Bonus With Level", "0.1", "whatever")
register_event("HLTV", "new_round", "a", "1=0", "2=0");
}
public new_round()
{
set_task(1.0, "BonusLevel")
}
public BonusLevel(id)
{
if(ze_is_user_zombie(id))
{
if(crxranks_get_user_level(id) == ITEMS1)
{
set_user_maxspeed(id, get_user_maxspeed(id) +20)
}
}
else
{
if(crxranks_get_user_level(id) == ITEMS1)
{
set_user_maxspeed(id, get_user_maxspeed(id) +50)
}
}
return 1;
}