#1

do i set someone's team using Gteam??
Reply
#2

OnPlayerRequestClass

if(classid == WHATEVER)
{
gTeam[playerid] = WHATEVER;
}
Reply
#3

can i also make them that team in a command?
Reply
#4

Quote:
Originally Posted by laser50
can i also make them that team in a command?
Yes,

Just use

gTeam[playerid] = TEAM;

To set the team,

And:

if(gTeam[playerid] == TEAM)

To get a players team
Reply
#5

my command isent working at all...

Код:
if (strcmp("/equip", cmdtext, true, 10) == 0)
	{
	if(IsPlayerInRangeOfPoint(playerid, 20.0, 255.3812,77.2109,1003.6406))
	{
	if(gTeam[playerid] == TEAM_COP)

  {
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Armoury", "Choose a package:/nOfficer Package/nSWAT Package/nUndercover Package/nRiot Package/nInvestigation Package", "Select", "Cancel");
	}
	}
	}
		return 1;
}
Reply
#6

What exactly dosent work about it
Reply
#7

i do the command and.. nothing happens

btw, its in LSPD witch is interior 6, i added if(GetPlayerInterior(playerid) == 6) etc etc.
Reply
#8

Try taking the , 10 of your command

So: if (strcmp("/equip", cmdtext, true) == 0)
Reply
#9

Quote:
Originally Posted by laser50
my command isent working at all...

Код:
if (strcmp("/equip", cmdtext, true, 10) == 0)
pawn Код:
if (strcmp("/equip", cmdtext, true) == 0)
Reply
#10

Quote:
Originally Posted by Adil_Rahoo
Quote:
Originally Posted by laser50
my command isent working at all...

Код:
if (strcmp("/equip", cmdtext, true, 10) == 0)
pawn Код:
if (strcmp("/equip", cmdtext, true) == 0)
Already said that and presuming by no reply its fixed??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)