how to make XP system
#3

Quote:
Originally Posted by Weirdosport
You may aswell just use the score system built into SA-MP.

SetPlayerScore(playerid, score);
GetPlayerScore(playerid);

You can add to these yourself, with things like:

pawn Код:
stock GivePlayerScore(playerid, score)
{
    SetPlayerScore(playerid, GetPlayerScore(playerid) + score);
    return GetPlayerScore(playerid); //added for the sake of it.
}
On top of this you'll need the help of a script like dudb to save the score when a player disconnects, and reload it upon their (safe) return.
am .. a how to rename GivePlayerScore GetPlayerScore SetPlayerScore in GivePlayerXP GetPlayerXP SetPlayerXP
Really?
Reply


Messages In This Thread
how to make XP system - by user226 - 09.08.2009, 14:42
Re: how to make XP system - by Weirdosport - 09.08.2009, 14:59
Re: how to make XP system - by user226 - 09.08.2009, 16:21
Re: how to make XP system - by user226 - 09.08.2009, 20:09
Re: how to make XP system - by Weirdosport - 09.08.2009, 20:18
Re: how to make XP system - by iLinx - 09.08.2009, 22:13
Re: how to make XP system - by user226 - 10.08.2009, 05:47

Forum Jump:


Users browsing this thread: 1 Guest(s)