[Help] Team cars
#1

Okay guys, I have been making TDM script and I got much help here, I need more help hehe

I wanna make team cars.
Here are some codes how I defined my teams.

new gTeam[MAX_PLAYERS];

#define TEAM_POLICE 1
#define TEAM_GROVE 2

SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0) ///<<<<<<<<<<<<<<<<<<<<<<======================= POLICE
{
gTeam[playerid] = TEAM_POLICE;
SetPlayerTeam(playerid,TEAM_POLICE);//You can delete this line if you want to allow team killing...
GameTextForPlayer(playerid,"~b~Police",5,0);
}

else if(classid == 7) ////////////////////<=======================GROVE STREET
{
gTeam[playerid] = TEAM_GROVE;
SetPlayerTeam(playerid,TEAM_GROVE);//Same for this!
GameTextForPlayer(playerid,"~g~Grove Street",5,0);
}
etc etc...
Can anyone help me with this?
Reply


Messages In This Thread
[Help] Team cars - by Twinki1993 - 12.07.2011, 23:32
Re: [Help] Team cars - by Vero - 12.07.2011, 23:40
Re: [Help] Team cars - by Twinki1993 - 12.07.2011, 23:41
Re: [Help] Team cars - by Vero - 12.07.2011, 23:43
Re: [Help] Team cars - by Twinki1993 - 12.07.2011, 23:44
Re: [Help] Team cars - by Vero - 12.07.2011, 23:46
[HELP]TEAM SYSTEM - by mitsos1997 - 19.07.2011, 07:47
Re: [Help] Team cars - by Kitten - 19.07.2011, 07:49

Forum Jump:


Users browsing this thread: 1 Guest(s)