How to?
#1

How to make my gate only open with players with _test behind their names like

1_test
2_test
5_test

atm i got

Код:
	if (strcmp(cmdtext, "/ogate", true)==0)
	{
	 new pName[24]; GetPlayerName(playerid, pName, 24);
			if (!strcmp(pName, "_test", true))
 			{
			  MoveStreamObject(test, -2443.229004, 491.982147, 30.627890, 2.500000);
			  MoveStreamObject(test1, -2423.760254, 500.450073, 30.631317, 2.500000);
			  SetTimer("Close", 7000, 0);
			  SendClientMessage(playerid, COLOR_YELLOW, "Indentity corfimed. The Enctrance Door is opening.");
			} else return SendClientMessage(playerid, COLOR_GRAD3, "Wrong indentity.");
			return 1;
Reply


Messages In This Thread
How to? - by SkyWinder - 05.07.2009, 00:30
Re: How to? - by abhinavdabral - 05.07.2009, 01:19
Re: How to? - by SkyWinder - 05.07.2009, 15:52
Re: How to? - by Nero_3D - 05.07.2009, 16:13
Re: How to? - by SampFreak09 - 23.07.2009, 09:30
Re: How to? - by cloud9 - 23.07.2009, 09:37

Forum Jump:


Users browsing this thread: 2 Guest(s)