score xp thing
#1

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?
Reply
#2

I guess you have to use TextDraws.

https://sampwiki.blast.hk/wiki/TextDrawCreate
Reply
#3

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
Reply
#4

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)