Need help making RP faction!
#1

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

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 ;
}
}
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)