exp,level system problem?
#1

how can i make that you get Xp from every kill,

and if you get like 100exp then you gain a level
Reply
#2

pawn Код:
new ExperiencePts[MAX_PLAYERS];
new Level[MAX_PLAYERS];
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  ExperiencePts[killerid] ++;
  if(ExperiencePts[killerid] > 99)
  {
    SendClientMessage(killerid, COLOR, "You gain a leve for having 100 experience points!");
    Level[killerid] ++;
    ExperiencePts[killerid] = 0;
  }
  return 1;
}
Reply
#3

Level[playerid]++; should be Level[killerid]++; The same with the message
Reply
#4

Updated...
Reply
#5

But What about saving exp? and levels?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)