07.03.2010, 14:03
how can i make that you get Xp from every kill,
and if you get like 100exp then you gain a level
and if you get like 100exp then you gain a level
new ExperiencePts[MAX_PLAYERS];
new Level[MAX_PLAYERS];
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;
}