SA-MP Forums Archive
Xp system help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Xp system help (/showthread.php?tid=481260)



Xp system help - Kells - 14.12.2013

guys i need to know how to make xp system i mean when you kill get +10 xp and rob +20 xp like on some servers and cops satus for example unlock only with maybe lets say 50000xp how to make that pleease +rep if answer correct and helped thanks


Re: Xp system help - Voxel - 14.12.2013

You will need to make a new stat in your database and use that. You can take a look in my SQLite database start script to see how you can easily make this. Example:
pawn Код:
//under on player death
User[playerid][USER_EXP] += 10;
Good luck!