SA-MP Forums Archive
score xp thing - 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: score xp thing (/showthread.php?tid=371596)



score xp thing - CrazyChoco - 23.08.2012

Well i want to make you know a sort of XP system, but this one, shall go after score, but a text down under the minimap, there shall be the How much xp he gained and i want it to be like

1 score = 1 XP <---- Ill change this later on

But my problem is how do i create something like that? is it just an simple code or is there any links already?


Re: score xp thing - Shetch - 23.08.2012

I guess you have to use TextDraws.

https://sampwiki.blast.hk/wiki/TextDrawCreate


Re: score xp thing - XStormiest - 23.08.2012

if you want to make it to save, you have to use a dini , y_ini or any file/database creator
also, if you want to don't save
use

pawn Код:
enum sD
      {
          XP
       }
      new DF[MAX_PLAYERS][sD];

     //after OnPlayerDeath
     public OnPlayerDeath(playerid,killerid,reason)
     {
             DF[killerid][XP] += 1;
            SetPlayerScore(killerid,GetPlayerScore(killerid)+DF[killerid][XP]);
         return 1;
     }
with a enum , and knowing the variables, and file saver, textdraw using you can make your own best system


Re: score xp thing - CrazyChoco - 23.08.2012

Thanks