Need help making RP faction! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help making RP faction! (
/showthread.php?tid=416783)
Need help making RP faction! -
beastorc3 - 18.02.2013
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.
Re: Need help making RP faction! -
DaRk_RaiN - 18.02.2013
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 ;
}
}
Re: Need help making RP faction! -
beastorc3 - 18.02.2013
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!