AddPlayerClassEx
#1

Greetings everyone,
I am currently writing a gamemode for own use,
Tough i have some minor inqueries, (minor questions i need an answer on)
For example take this

Код:
#define PLAYER 0
#define ROBBER 1

AddPlayerClassEx(0, x, y, z, o, 0, 0, 0, 0, 0, 0);//Will this be the player team he spawns in?
AddPlayerClassEx(1, x, y, z, o, 0, 0, 0, 0, 0, 0);//Will this be the robbing team he spawns in?
Whats better to use?
AddPlayerClass(0, x, y, z, o, 0, 0, 0, 0, 0, 0);
or
AddPlayerClassEx(0, x, y, z, o, 0, 0, 0, 0, 0, 0);

Since im going to create a server with mutliple teams,
also, is it possible to assing a sub team to a player for example
I have the team Robber a player is in it and i want him to be Rapist as sub team,
So i can filter commands to the right team, wich one would u preffer?

Regards Yvoms
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)