07.06.2018, 19:22
Use como base:
PHP Code:
new XP[MAX_PLAYERS];
public OnPlayerDeath(playerid)
{
XP[killerid] += 4;
if(XP[killerid] >= ObjetivoXP(killerid))
{
new str[90];
SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
format(str, sizeof(90), "Vocк agora й nivel %d!", GetPlayerScore(killerid));
SendClientMessage(playerid, -1, str);
}
return 1;
}
ObjetivoXP(playerid)
return 5 * GetPlayerScore(playerid);