Cop Command
#1

I'm converting police gate commands from one filterscript to the gamemode script.. This is what i done

Код:
	if (strcmp(cmdtext, "/1close", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
	{
	MoveObject(gates[4], 246.750320,72.625373,1003.791320,1);
	}
	else
	{
	SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your not a cop.");
	}
	}
	return 1;
	}
But even when i am a cop it says "Your not a cop" does anyone know where i went wrong?
Reply


Messages In This Thread
Cop Command - by Ritchie999 - 06.01.2010, 15:34
Re: Cop Command - by Oxside - 06.01.2010, 15:41
Re: Cop Command - by Ritchie999 - 06.01.2010, 16:10
Re: Cop Command - by jameskmonger - 06.01.2010, 16:13
Re: Cop Command - by Ritchie999 - 06.01.2010, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)