Player's can't see other users on fire? -
Tass007 - 18.08.2016
Hi guys. When a user gets set on fire, whatever way. The user themselves sees that they are on fire, however all the other players don't see the player on fire; they just see them slowly losing health. Is there a way to fix this?
Thanks.
Re: Player's can't see other users on fire? -
Kar - 18.08.2016
Fires are client sided. Especially those 'explosion fires'.
If a fire happens on a clients screen then another player comes in and streams.. the fires won't get streamed for the 'another player'.
The only way to fix this is to make a server sided fire system.
Re: Player's can't see other users on fire? -
NaS - 18.08.2016
You could attach a fire object to any player getting fire damage with a little cooldown. If the cooldown runs out and the player didnt get any fire damage in the past seconds, remove the object again. Also looks more dramatic for the player being on fire.
I used this on my old server, the only issue may be that jumping/climbing stops the "fake fire" since you don't get damage during that time.
Re: Player's can't see other users on fire? -
Tass007 - 24.08.2016
So there is no fix for it that doesn't have an potential issue?
Re: Player's can't see other users on fire? -
Shinja - 24.08.2016
https://sampforum.blast.hk/showthread.php?tid=490436
You can slove it with this include, + this include have many many useful callbacks and functions!
PHP код:
public OnPlayerStartBurn(playerid)
{
// Attach a fire particle to this player so other players can see them burning!
SetPlayerAttachedObject(playerid, 0, 18691, 1);
return 1;
}
public OnPlayerStopBurn(playerid)
{
RemovePlayerAttachedObject(playerid, 0);
SendClientMessage(playerid, COLOR_WHITE, "You have stopped burning.");
return 1;
}
Re: Player's can't see other users on fire? -
Tass007 - 24.08.2016
Awesome thanks! I have another question. If I want people to be able to reload their weapon using the button R, how would I do that, could I do it using this
PHP код:
public OnPlayerReloadWeapon(playerid, weaponid, ammo)
{
return 1;
}
??
Re: Player's can't see other users on fire? -
oMa37 - 24.08.2016
OnPlayerKeyStateChange.
https://sampwiki.blast.hk/wiki/Keys
Not possible tho.
Re: Player's can't see other users on fire? -
Tass007 - 24.08.2016
Not possible with what?
Re: Player's can't see other users on fire? -
oMa37 - 24.08.2016
R, Take a look on the link i post ...
Re: Player's can't see other users on fire? -
Tass007 - 24.08.2016
Oh right, so I'd have to use like H? Or something? How would I use the callback in order to initiate the reload?