03.02.2016, 17:03
People if you have no clue whatsoever as to what the OP is asking for OR if you have no clue whatsoever as to how to fix the issue, please refrain from posting. You are violating the forum rules. Thank you.
on topic: I don't know what the issue is with your original code as according to wiki SA-MP it should be working just perfect. However, you can achieve the system you want by simply using SetPlayerCameraPos, SetPlayerCameraLookAt and various SetPlayerSkin functions and you can simply use a GetPlayerSkin and assign the player to a team afterwards the skin selection. It takes effort and time but it gets the job done. Don't forget to save the player's old positions to teleport the player back to where he/she was before.
Edit: Stop telling him to use SetPlayerHealth function. He already said that he doesn't want to use the SetPlayerHealth function. Jesus christ. And no it isn't the most "useful and effective way" to do it and no, only beginner scripters do it.
on topic: I don't know what the issue is with your original code as according to wiki SA-MP it should be working just perfect. However, you can achieve the system you want by simply using SetPlayerCameraPos, SetPlayerCameraLookAt and various SetPlayerSkin functions and you can simply use a GetPlayerSkin and assign the player to a team afterwards the skin selection. It takes effort and time but it gets the job done. Don't forget to save the player's old positions to teleport the player back to where he/she was before.
Edit: Stop telling him to use SetPlayerHealth function. He already said that he doesn't want to use the SetPlayerHealth function. Jesus christ. And no it isn't the most "useful and effective way" to do it and no, only beginner scripters do it.