14.12.2010, 23:10
You can do it by many ways. One of them and most used is:
And according commands, and classes, you can add/define the teams/restrictions
This is just a basic example. If the player choose the class ID 0 (CJ CHARACTER), his team will be the defined team "SX".
pawn Код:
new gTeam[MAX_PLAYERS]; // Top of script, for defined which team is the player from
#define SX 1
pawn Код:
On the callback OnPlayerClassRequest
if(classid == 0) return gPlayer[playerid]=SX;
And according commands, and classes, you can add/define the teams/restrictions
This is just a basic example. If the player choose the class ID 0 (CJ CHARACTER), his team will be the defined team "SX".