SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 43
Search took 0.12 seconds.
Search: Posts Made By: Volumen
Forum: Scripting Help 17/02/2019, 09:49 PM
Replies: 4
Views: 190
Posted By Volumen
Re: health bar

By the way, should you set some variable on the server side to store the health of each player, and avoid the cheaters?

Something like this:


//OnPlayerConnect...
Forum: Scripting Help 17/02/2019, 08:09 PM
Replies: 4
Views: 190
Posted By Volumen
Re: health bar

When a player falls from a height and is injured or explodes with the '/ burn' command, is the callback also called?
Forum: Scripting Help 17/02/2019, 06:42 PM
Replies: 4
Views: 190
Posted By Volumen
health bar

I have a personalized health bar, the question is: What callback should I use to update the new bar? 'OnPlayerUpdate', 'OnPlayerTakeDamage' or 'OnPlayerGiveDmage'?
Forum: Scripting Help 17/02/2019, 12:48 AM
Replies: 4
Views: 218
Posted By Volumen
Re: Ammunition of the player's current weapon

Is it the only way to do that?
Forum: Scripting Help 17/02/2019, 12:17 AM
Replies: 4
Views: 218
Posted By Volumen
Ammunition of the player's current weapon

How can I detect the player's current ammunition and the remaining ammunition to recharge the weapon? Example: "7/14", "7" are the bullets that the weapon currently has and '14' is the available...
Forum: Plugin Development 14/02/2019, 10:59 PM
Replies: 1,376
[Plugin] Audio Plugin
Views: 629,003
Posted By Volumen
Re: Audio Plugin

Someone who can answer my question? I want to know if it's what I'm looking for.
Forum: Scripting Help 14/02/2019, 10:56 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

I do not see that it is a bad thing, if there is already a topic with which you can help with my problem, I do not see the need to create another topic related to the same as this one. I do not see...
Forum: Scripting Help 13/02/2019, 11:23 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

I already did everything, I did it as the example that Itzhak E showed.. But now I want that when the spawnee player, the text drawings with the statistics of the player appear.

...
Forum: Scripting Help 13/02/2019, 06:52 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

The method of 'Itzhak E.' Is it what you mean there is to be done? If it does not bother you, you can make a small code here of how you would do to update?
Forum: Plugin Development 13/02/2019, 05:55 PM
Replies: 1,376
[Plugin] Audio Plugin
Views: 629,003
Posted By Volumen
Re: Audio Plugin

I am creating a game mode in which I want the music and sounds to be played immediately to all the players at the same time when the code is executed. 'PlayAudioStreamForPlayer' plays the music...
Forum: Scripting Help 13/02/2019, 05:42 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

What does that mean? Set a timer when the player connects?
Forum: Scripting Help 13/02/2019, 05:09 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

Well, I will change my current way of updating the textdraw of the players and I will use the previous method that ****** had mentioned. I just need you to explain or tell me the right way to do...
Forum: Scripting Help 13/02/2019, 12:56 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

I do not see the need to create a new theme if there is already one in which I can learn something I do not know.
Forum: Scripting Help 13/02/2019, 12:48 PM
Replies: 35
Views: 1,088
Posted By Volumen
Re: Update player statistics in the textdraw

Mmm, I am currently using a timer in 'OnGameModeInit' to update the 'fps' and the 'ping' of all the players. But now I see there are better ways to do this, I think I'm interested in this post.
...
Forum: Scripting Help 12/02/2019, 03:39 PM
Replies: 11
Views: 339
Posted By Volumen
Re: Experience bar

I don't understand what it says. The previous formula did not work for me, I had to do it this way:


new test = PLAYER_LEVEL[playerid] * 12;
new Float:size = 514.0 +...
Forum: Scripting Help 11/02/2019, 09:20 PM
Replies: 11
Views: 339
Posted By Volumen
Re: Experience bar

Yes, because if you are level 1, then to go up to level 2 you need 12 of xp, and if you are level 2 you need 24 of xp to go up to level 3 and so on. Everything depends on the level of the player.
...
Forum: Scripting Help 11/02/2019, 08:29 PM
Replies: 11
Views: 339
Posted By Volumen
Re: Experience bar

new test= PLAYER_LEVEL[playerid] * 12;
new Float:size = 514.0 + (604.0 - 514.0) * (PLAYER_EXP[playerid]/test);
Forum: Scripting Help 11/02/2019, 07:13 PM
Replies: 11
Views: 339
Posted By Volumen
Re: Experience bar

The calculation you gave me is still not working.
Forum: Scripting Help 11/02/2019, 06:11 PM
Replies: 11
Views: 339
Posted By Volumen
Re: Experience bar

I do not think this is recommended or constantly used. I have seen and downloaded several servers and in their game mode they use textdraw to create those bars (that's why I say that I do not think...
Forum: Scripting Help 11/02/2019, 05:21 PM
Replies: 11
Views: 339
Posted By Volumen
Experience bar

I have a problem with this exp bar created with textdraw. The bar is not precise, by this I mean that it does not increase depending on the variables of the player. There are also times where your...
Forum: Scripting Help 01/02/2019, 01:45 AM
Replies: 5
Views: 266
Posted By Volumen
Re: SetPlayerPos or SetSpawnInfo

'SetSpawnInfo' then?
Forum: Scripting Help 01/02/2019, 01:14 AM
Replies: 5
Views: 266
Posted By Volumen
Re: SetPlayerPos or SetSpawnInfo

I have always used 'SetPlayerPos' in 'OnPlayerSpawn' and in 'OnPlayerDeath' I only adjust the player's score (it is a multimode freeroam server).

Should I use 'SetSpawnInfo' in 'OnPlayerDeath' and...
Forum: Scripting Help 01/02/2019, 12:28 AM
Replies: 5
Views: 266
Posted By Volumen
SetPlayerPos or SetSpawnInfo

Which is more recommendable, use 'SetPlayerPos' in 'OnPlayerSpawn' or 'SetSpawnInfo' in 'OnPlayerDeath'?
Forum: Scripting Help 24/01/2019, 10:20 PM
Replies: 9
Views: 313
Posted By Volumen
Re: Custom Hud

Ok, I will use 'OnPlayerUpdate'. If I had used a timer, would it go to OnPlayerConnect?
Forum: Scripting Help 24/01/2019, 10:12 PM
Replies: 9
Views: 313
Posted By Volumen
Re: Custom Hud

Oh thanks. This is the answer I was looking for. By the way, is not it necessary to use a timer instead of 'OnPlayerUpdate'?
Showing results 1 to 25 of 43

 

All times are GMT. The time now is 02:35 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.