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?