Yeah.
Code:
// long function name, eh?
public check_for_new_level(id) {
new xpneeded = get_user_nextxp(id);
if(playerxp[id] > xpneeded) {
level[id]++;
// congratulatory stuff here
}
}
I put "give_item(id,"weapon_m4a1") for // congratulatory stuff here
And what I thought was gonna happen was when I killed a person it would have given me the m4a1.
__________________