03.04.2017, 14:23
Hello,
in my mode i have for example skin changer. Player go to pickup and buy any kind of skin.
I have save system too, so if player buy skin id 1 and die or relog he still have skin id 1.
When i test it, it works perfect for me. But iam player id 0, the wierd thing is that when join
another player (id 1), it doesnt work for the player. Player still spawn with skin that he choose in
onplayerrequestclass...
Is there any difference between players IDs ? Do i need to define something for server know that is another player?
Why my code does work for me and doesnt work for other players?
Thanks.
in my mode i have for example skin changer. Player go to pickup and buy any kind of skin.
I have save system too, so if player buy skin id 1 and die or relog he still have skin id 1.
When i test it, it works perfect for me. But iam player id 0, the wierd thing is that when join
another player (id 1), it doesnt work for the player. Player still spawn with skin that he choose in
onplayerrequestclass...
Is there any difference between players IDs ? Do i need to define something for server know that is another player?
Why my code does work for me and doesnt work for other players?
Thanks.


. But when other player do the same thing /drink, his animation is after 10 seconds disabled but he cant move from the place where he did / drink.. The code is same for both players. Player with id 0 and player with id 1. Why it is different?
I found the problem ... It's becasue i use this command /setskin :