Gate's For Specific Faction ?
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])//
{
	if (strcmp("/AGate1O", cmdtext, true, 10) == 0)
	{
		MoveObject(AGate1, 3648.7119140625, -651.322265625, -1.7251167297363, 3.5);
		SendClientMessage(playerid, 0xB8860BAA, "The Admin Island Gate Has been opened please use /AGate1C to Close it");
		return 1;
	}
	if (strcmp("/AGate1C", cmdtext, true, 10) == 0)
	{
	  MoveObject(AGate1, 3648.7119140625, -651.322265625, 9.5248832702637, 3.5);
	  SendClientMessage(playerid, 0xB8860BAA, "Thank you the Admin Island Gate has been Closed");
	  return 1;
	} if (strcmp("/MGOPEN1", cmdtext, true, 10) == 0)
	{
      if(pGang[playerid]==2) {
		MoveObject(CGate1, 2832.1252441406, -1555.6474609375, 10.096872329712, 3.5);
		SendClientMessage(playerid, 0xB8860BAA, "The Maldini Family Gate Has Open");
        } else { SendClientMessage(playerid, 0xB8860BAA, "You Can't Open This Gate"); }
		return 1;
	}
	if (strcmp("/MGCLOSE1", cmdtext, true, 10) == 0) { 
    if(pGang[playerid]==2) {
	  MoveObject(CGate1, 2830.5666503906, -1565.1704101563, 10.096872329712, 3.5);
	  SendClientMessage(playerid, 0xFFFFFFAA, "Thank you The Maldini Family Gate Has Closed");
      } else { SendClientMessage(playerid, 0xB8860BAA, "You Can't Open This Gate"); }
	  return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Gate's For Specific Faction ? - by matthew32112 - 15.03.2010, 12:52
Re: Gate's For Specific Faction ? - by aircombat - 15.03.2010, 12:58
Re: Gate's For Specific Faction ? - by Kurence - 15.03.2010, 13:18
Re: Gate's For Specific Faction ? - by matthew32112 - 15.03.2010, 13:25
Re: Gate's For Specific Faction ? - by aircombat - 15.03.2010, 14:07
Re: Gate's For Specific Faction ? - by matthew32112 - 15.03.2010, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)