Posts: 39
Threads: 7
Joined: Jun 2012
Hey guys I have been making this RP gamemode but every time I wanna script in a faction it goes to shit......
Anyway you can give me a link to a toturial or something much appreciated.
Posts: 39
Threads: 7
Joined: Jun 2012
Quote:
Originally Posted by DaRk_RaiN
Use y_groups.
Or use a variable such as gTeam, which is commonly used now a days.
pawn Код:
new gTeam[MAX_PLAYERS];//The variable which will save player team durring the connection.
pawn Код:
#define Cops 1 #define Civil 2 #define Prostituts 3 //we are now defining the teams
Then on class section you can set the teams
pawn Код:
switch(classid) { case 0: { gTeam[playerid] = 1;//setting his team.or you can use gTeam[playerid] = Cops; } case 1: { gTeam[playerid] = 2;//setting his team.or you can use gTeam[playerid] = Civil ; } }
|
THANK YOU SO MUCH!