Your current script gives everyone 15 levels when someone connects, this will make only the connecting player get 15 levels:
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init() {
register_plugin("free level 15", "1.0", "Rolnaaba")
}
public client_connect(id)
{
if(playerxp[id] < AMOUNT_HERE)
{
new MOD = "UWC3"
client_print(id, print_chat,
"[%s] The admin gave you %d experience",MOD, str_to_num(xp))
playerxp[id]+=str_to_num(xp)
displaylevel(id,1)
}
}
Course this script won't work without being in the main WC3 connect function unless you want to push variables from plugin to plugin.
__________________