Search Results
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: PHP код: //OnPlayerConnect Player_Info[playerid][p...
99
Quote: Originally Posted by Kasichok OnPlayerTakeDamage When a player falls from a height and is injured or explodes with the '/ burn' command, is the callback also called?
99
I have a personalized health bar, the question is: What callback should I use to update the new bar? 'OnPlayerUpdate', 'OnPlayerTakeDamage' or 'OnPlayerGiveDmage'?
99
Quote: Originally Posted by ConnorW switching the weapon OnPlayerWeaponShot and using a variable to save ammo whenever you give them weapon or they buy it. Is it the only way to do that?
114
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 ammun...
114
Someone who can answer my question? I want to know if it's what I'm looking for.
38,681
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 depend...
38,681
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. "PL...
241
PHP код: new test= PLAYER_LEVEL[playerid] * 12; new Float:size = 514.0 + (604.0 - 514.0) * (PLAYER_EXP[playerid]/test); 
241
The calculation you gave me is still not working.
241
Then you must use DIALOG_STYLE_LIST instead of DIALOG_STYLE_MSGBOX
245
Clearly if it should work. PHP код: //OnPlayerConnect  ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_MSGBOX, "{0092FF}Bienvenido | Welcome", "{FFFFFF}Por favor, elija el ...
245
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 it...
241
PHP код: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])  {      switch(dialogid)      {          case DIALOG_LANGUAGE:          ...
245
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 exp...
241
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 re...
160
Which is more recommendable, use 'SetPlayerPos' in 'OnPlayerSpawn' or 'SetSpawnInfo' in 'OnPlayerDeath'?
160
Ok, I will use 'OnPlayerUpdate'. If I had used a timer, would it go to OnPlayerConnect?
169
Oh thanks. This is the answer I was looking for. By the way, is not it necessary to use a timer instead of 'OnPlayerUpdate'?
169