How can i create experience point system in y_ini
#6

OOHHHHH

Thats easy as well :P

pawn Код:
stock GiveExperienceToPlayer(playerid, value)
    {
    PlayerInfo[playerid][pExp] = +value //change that to match your enum
    return 1;
    }
If you want to add or remove, just use + or - before the value, for example, if you wanna add 2 to the persons score, just do SetPlayerScore(playerid, +2) and etc.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)