Zrobiłem prezent portal gun, ale niestety nie dostaje się go.
Oto kod.
Co w nim może być nie tak?
Spoiler
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <prezenty>
#define PLUGIN "Lista prezentow"
#define VERSION "1.0"
#define AUTHOR "R3X"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_gift("Prezent#1", "Prezent_Numer1");
register_gift("Prezent#2", "Prezent_Numer2");
//Na poczatk rundy
register_event("HLTV", "eventRoundInit", "a", "1=0", "2=0");
}
public eventRoundInit()
{
gifts_clear_map();
set_task(5.0, "taskSpawnGift", 2368);
}
public taskSpawnGift()
{
gift_spawn();
}
public Prezent_Numer1(id)
{
new name[32];
get_user_name(id, name, 31)
client_print(id, print_chat, "Dostales portal gun");
server_cmd("give_portal %s", name)
}
public Prezent_Numer2(id)
{
new name[32];
get_user_name(id, name, 31)
client_print(id, print_chat, "Dostales portal gun");
server_cmd("give_portal %s", name)
}