DiabloMod 5.9l - Nieoficjalny polski support AMX Mod X
GaCeK:
Do plugin_init:register_clcmd("amx_exp","give_xp",ADMIN_KICK," ");
Public gdzieś wrzuć np. po funkcji roundstartpublic give_xP(id,level, cid)
{
if(!cmd_access(id,level, cid, 3))
return PLUGIN_HANDLED;
new szName[32];
read_argv(1, szName, 31);
new iTarget=cmd_target(id,szName,0);
if(iTarget){
get_user_name(iTarget, szName, 31);
new szItem[10], iItem;
read_argv(2, szItem, 9);
iItem=str_to_num(szItem);
client_print(id, print_console, "Do %s wyslano exp: %d",szName, iItem);
Give_xP(iTarget, iItem);
}
return PLUGIN_HANDLED
}
Jest to przeróbka kodu na dawanie itemów R3X 2 rzeczy dokładniej zmienione
Użycie:
amx_exp Vertricus 666
Działa przy 2 lub więcej graczach
Błąd:
Error: Undefined symbol "Give_xP" on line 1197