Player's can't see other users on fire?
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

So there is no fix for it that doesn't have an potential issue?
Reply
#5

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(playerid0186911); 
    return 
1;
}
public 
OnPlayerStopBurn(playerid)
{
    
RemovePlayerAttachedObject(playerid0);
    
SendClientMessage(playeridCOLOR_WHITE"You have stopped burning.");
    return 
1;

Reply
#6

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(playeridweaponidammo)
{
    return 
1;

??
Reply
#7

OnPlayerKeyStateChange.
https://sampwiki.blast.hk/wiki/Keys
Not possible tho.
Reply
#8

Not possible with what?
Reply
#9

R, Take a look on the link i post ...
Reply
#10

Oh right, so I'd have to use like H? Or something? How would I use the callback in order to initiate the reload?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)