i am trying to create a plugin that will (on client connection) add 15 levels (UWC3 mod btw) to a player's level if they are below the level of 15, can someone please let me know of the PAWN comand used to give exp, or levels?
I read through the UWC3.sma and includes and i think this MIGHT work
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 < AMOUNT_HERE)
{
new MOD = "UWC3"
new players[32], inum
get_players(players,inum)
for(new a=0;a<inum;++a)
{
client_print(players[a], print_chat,
"[%s] The admin gave you %d experience",MOD, str_to_num(xp))
playerxp[players[a]]+=str_to_num(xp)
displaylevel(players[a],1)
}
}
}
(of corse i didnt define many vaiables used in here, want to find out if this would work or not first)
__________________