11.03.2014, 02:09
Refer to the wiki.
https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/AddPlayerClassEx
The only difference between AddPlayerClass and AddPlayerClassEx is that AddPlayerClassEx has the teamid parameter. I preffer to use AddPlayerClass and then use SetPlayerTeam(playerid, teamid); to create an Anti TeamKill system, like cops can't kill/hurt cops, etc. Its all up to you, you can use anyone you want and the results will be the same.
https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/AddPlayerClassEx
The only difference between AddPlayerClass and AddPlayerClassEx is that AddPlayerClassEx has the teamid parameter. I preffer to use AddPlayerClass and then use SetPlayerTeam(playerid, teamid); to create an Anti TeamKill system, like cops can't kill/hurt cops, etc. Its all up to you, you can use anyone you want and the results will be the same.