Custom Deathlist -
NoteND - 09.03.2019
Hey!
I'm just wondering how do you make custom textdraw based deathlist. I know there is
"https://sampwiki.blast.hk/wiki/SendDeathMessage" this function to send death message but I wanna make it textdraw based.
I'm just wondering how do you make it so that when for example first player dies it shows textdraw with his name, when second player dies it shows textdraw with his name but above the first one and so on.. ? I have an idea on how to make it but I just wanna ask for some tips.
Example:
Death List
1. Player1
2. Player2
3. Player3
...
EDIT: Here's picture of what I want to make.. ignore timers next to names
https://i.gyazo.com/24d574cb7ceb47e0...741a47840b.png
Re: Custom Deathlist -
NoteND - 10.03.2019
Bump.
Re: Custom Deathlist -
NoteND - 10.03.2019
Anyone hello ?
Re: Custom Deathlist -
TokicMajstor - 10.03.2019
1. Make thoose textdraws in Textdraw studio (don't use Ipleomax's)
2. Add them in gamemode and show them where you want
3. OnPlayerDeath SET TD string to that player's name
Re: Custom Deathlist -
JesterlJoker - 11.03.2019
Quote:
Originally Posted by TokicMajstor
1. Make thoose textdraws in Textdraw studio (don't use Ipleomax's)
2. Add them in gamemode and show them where you want
3. OnPlayerDeath SET TD string to that player's name
|
Like what the above says. But here is a descriptive explanation
1. Using textdraws... Global Textdraws or Player Textdraws should be fine.
2. You have to learn 2D axis's or specifically the X and Y axis of the screen.
3. Define locations on the screen. One on the bottom, second on the middle and third on top.
4. Now you need a temp[3] to hold who had died for the past three deaths.
5. Count how many have died already and was at the temp.
6. If there is no one dead yet, add the name on the first one, if there is one dead, move the old dead one to the second holder then add the new one on the first holder. and so on and so fort. Ones three are dead and a new one dies. Remove the last one, add the second one to the last one and so on and so fort with the new one being added to the first holder.
7. Set timers for each dead names so that they vanish of the screen.
8. I don't know if I have explained it properly so I might make an example and show it to you if you haven't gotten it yet.
Re: Custom Deathlist -
m4karow - 11.03.2019
Why is it good if it textdraw based?
Re: Custom Deathlist -
JesterlJoker - 11.03.2019
Quote:
Originally Posted by m4karow
Why is it good if it textdraw based?
|
for starters It's not, it's just doubling your work.
But it has it's advantages:
1. You can edit your own messages on it i.e Mark Zuckerberg stabbed Elon Musk on the kneck with a knife
or Steve Jobs hurled Bill Gates off a roof killing the bastard and lastly
Our matey, Jacksepticeye was killed by Smitty with the lads own cannoons
and the likes.
2. You can also add your own Icons, and your own style if you like.
3. It's custom. Nothing get's better than that. Your own custom made text
Re: Custom Deathlist -
NoteND - 11.03.2019
Quote:
Originally Posted by JesterlJoker
Like what the above says. But here is a descriptive explanation
1. Using textdraws... Global Textdraws or Player Textdraws should be fine.
2. You have to learn 2D axis's or specifically the X and Y axis of the screen.
3. Define locations on the screen. One on the bottom, second on the middle and third on top.
4. Now you need a temp[3] to hold who had died for the past three deaths.
5. Count how many have died already and was at the temp.
6. If there is no one dead yet, add the name on the first one, if there is one dead, move the old dead one to the second holder then add the new one on the first holder. and so on and so fort. Ones three are dead and a new one dies. Remove the last one, add the second one to the last one and so on and so fort with the new one being added to the first holder.
7. Set timers for each dead names so that they vanish of the screen.
8. I don't know if I have explained it properly so I might make an example and show it to you if you haven't gotten it yet.
|
Scripted it myself. Thanks for help