29.09.2018, 07:48
The same mistake as your previous thread, targetid is again 0.
I look at the source code of your filterscript for the /rob command and you have the same mistake there again. You get the position before the sscanf line.
You set some variables to 1 when being robbed or robbing a player but instead of this way, here is what you have to do:
reset to -1 and set the ID of the player who robs or being robbed. That way, you can retrieve it in OnPlayerDisconnect and send them a message about the recovery of their wallet.
I look at the source code of your filterscript for the /rob command and you have the same mistake there again. You get the position before the sscanf line.
You set some variables to 1 when being robbed or robbing a player but instead of this way, here is what you have to do:
reset to -1 and set the ID of the player who robs or being robbed. That way, you can retrieve it in OnPlayerDisconnect and send them a message about the recovery of their wallet.