Quote:
Originally Posted by Lordz™
Kinda:
pawn Код:
new Exp[MAX_PLAYERS]; new Levelup[MAX_PLAYERS]; new Exptarg[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason) { Exp[killerid]++; //Ups the exp of killer. return 1; }
public OnPlayerUpdate(playerid) { if(Exp[playerid] == Exptarg) { Levelup[playerid]++; //If the player's experience is equal or more that the needed experience to Level up, then a level up. Exptarg[playerid] = Levelup[playerid]+2; //Next experience target will be +2 from the current level. Exp[playerid] = 0; //Resets the experience. } return 1; }
|
Thank you for giving an example of it Lordz. This is what I want