SA-MP Forums Archive
Some questions about the server interface - 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: Some questions about the server interface (/showthread.php?tid=634793)



Some questions about the server interface - BadScripter - 26.05.2017

I've some inquires about how to change the server interface in samp and want some help .

-Is it possible to hide the health and armor bar in my server so ppl can't see the health or the armor bar above the player head ?

-Is it possible to change the interface of the server "the weapon place and the health/armor bar and the money " can i hide them or move them ?

-How to create a decent speedmeter with a good looking instead of having it like "Speed : *** Km/h" is there any way to make something better than that ?

-How to create a textdraw above the player head ? what's the code to do that ?


Re: Some questions about the server interface - asri - 26.05.2017

Quote:

-How to create a textdraw above the player head ? what's the code to do that ?

https://sampforum.blast.hk/showthread.php?tid=634185


Re: Some questions about the server interface - mongi - 26.05.2017

1- I guess yeah, ShowNameTags(Option); 1 to show, 0 to hide
2- I think you can't hide them, It's a part of GTA SA as a game, not samp but u can make your own health bar on them (Your new health bar will be the old one so it will hide it)
3- Seems impossible lol (I think)
4-
Quote:
Originally Posted by asri
Посмотреть сообщение



Re: Some questions about the server interface - BadScripter - 26.05.2017

Quote:
Originally Posted by asri
Посмотреть сообщение
Looks useful umma try it thanks tho


Re: Some questions about the server interface - BadScripter - 26.05.2017

Quote:
Originally Posted by mongi
Посмотреть сообщение
1- I guess yeah, ShowNameTags(Option); 1 to show, 0 to hide
2- I think you can't hide them, It's a part of GTA SA as a game, not samp but u can make your own health bar on them (Your new health bar will be the old one so it will hide it)
3- Seems impossible lol (I think)
4-
Uhm ... can you explain more about "ShowNameTags(Option)" I am new and would like to learn it also the same with creating new health bar


Re: Some questions about the server interface - asri - 26.05.2017

Toggle the drawing of nametags, health bars and armor bars above players

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


Re: Some questions about the server interface - BadScripter - 26.05.2017

Quote:
Originally Posted by asri
Посмотреть сообщение
Toggle the drawing of nametags, health bars and armor bars above players

https://sampwiki.blast.hk/wiki/ShowNameTags
Looks so easy and simple I like it ,thank you !


Re: Some questions about the server interface - mongi - 26.05.2017

I don't even know how to create a new health bar for your server but i saw it being used in many servers which mean it's possible


Re: Some questions about the server interface - SaiyanZ - 26.05.2017

For Example
PHP код:
public OnGameModeInit()
{
ShowNameTags(0); // Here 0 means the name tags and the health bar will disappear,
// IF you place 1 in place of 0 that means the name tags will be visible.
//Other codes here
return 1;

Try to figure it out by testing, you'll learn much quicker,
Instead of copy paste :P


Re: Some questions about the server interface - Vince - 26.05.2017

Quote:
Originally Posted by BadScripter
Посмотреть сообщение
-Is it possible to change the interface of the server "the weapon place and the health/armor bar and the money " can i hide them or move them ?
http://forum.sa-mp.com/showpost.php?...&postcount=287


Re: Some questions about the server interface - BadScripter - 26.05.2017

Quote:
Originally Posted by Vince
Посмотреть сообщение
I understand his point .


Re: Some questions about the server interface - BadScripter - 26.05.2017

Quote:
Originally Posted by coool
Посмотреть сообщение
-Check the samp+ in plugins section.
-You can make a circular textdraw for that. ****** it.
-Do you mean this https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Can you give me link for samp+ ?

If I made it all it can be moving like the real speedmeter ? or i'll end up having the circle and the numbers and everything without having it working .

Yes that's exactly what I was asking about

Thanks tho .


Re: Some questions about the server interface - BadScripter - 26.05.2017

Quote:
Originally Posted by SaiyanZ
Посмотреть сообщение
For Example
PHP код:
public OnGameModeInit()
{
ShowNameTags(0); // Here 0 means the name tags and the health bar will disappear,
// IF you place 1 in place of 0 that means the name tags will be visible.
//Other codes here
return 1;

Try to figure it out by testing, you'll learn much quicker,
Instead of copy paste :P
Yes I see is seams easy one ,at least not that hard to get it done .