31.10.2015, 03:59
(
Последний раз редактировалось Guss; 31.10.2015 в 18:34.
)
Hi guys, I need help with my callback.
When an administrator uses the command /spec to observe a player position it was in before it is saved. Later when the administrator writes /specoff the reappears in its position but with the problem of lost weapons and ammunition which always carried with him. I know that the problem lies in this OnPlayerSpawn but not how to troubleshoot.
I do not know the callback because it is the basis of other gamemode, and I need someone who understands best.
This is how I have fixed the code, position is saved but not weapons appear and others.
ADDED: What happens when the admin ends to observe is what is located at the beginning of the callback.
Thank you for your help !
When an administrator uses the command /spec to observe a player position it was in before it is saved. Later when the administrator writes /specoff the reappears in its position but with the problem of lost weapons and ammunition which always carried with him. I know that the problem lies in this OnPlayerSpawn but not how to troubleshoot.
I do not know the callback because it is the basis of other gamemode, and I need someone who understands best.
This is how I have fixed the code, position is saved but not weapons appear and others.
PHP код:
CODE REMOVED
Thank you for your help !