01.12.2011, 13:42
Nгo entendi o.O, Ele upa pelo OnPlayerDeath?
@EDIT
@EDIT
PHP код:
new
Level[MAX_PLAYERS],
Exp[MAX_PLAYERS]
;
stock Expz(playerid)
{
new Ezp;
if(Level[playerid] == 1) Ezp = 10;
if(Level[playerid] == 2) Ezp = 20;
if(Level[playerid] == 3) Ezp = 30;
if(Level[playerid] == 4) Ezp = 40;
if(Level[playerid] == 5) Ezp = 50;
return Ezp;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Exp[killerid] ++;
if(Exp[killerid] >= Expz(killerid))
{
Level[killerid] ++;
Exp[killerid] = 0;
}
return true;
}