Command Not Working Correctly
#4

its Very Simple

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/opene69", cmdtext, true, 10) == 0)
	{
		if(IsPlayerInRangeOfPoint(playerid, 7.0, -1523.627808, 481.981415, 6.207134))
		{
		MoveObject(Agate, -1535.559692, 481.989716, 6.179688, 2.00);
		SendClientMessage(playerid, COLOR_RED, "Gate Opened Automaticly");
		}
		return 1;
		}
		
	if (strcmp("/closee69", cmdtext, true, 10) == 0)
		{
		if(IsPlayerInRangeOfPoint(playerid, 7.0, -1523.627808, 481.981415, 6.207134))
		{
		MoveObject(Agate, -1523.627808, 481.981415, 6.207134, 2.00);
		SendClientMessage(playerid, COLOR_RED, "Gate Closed Automaticly");
		}
		return 1;
		}
	return 1;
	}
changing the return 0; 's to 1's worked a bit better, he hitted 3 times working...
Reply


Messages In This Thread
Command Not Working Correctly - by laserhel50 - 18.11.2009, 21:04
Re: Command Not Working Correctly - by LarzI - 18.11.2009, 21:36
Re: Command Not Working Correctly - by agusfn20 - 18.11.2009, 21:41
Re: Command Not Working Correctly - by laserhel50 - 18.11.2009, 21:43
Re: Command Not Working Correctly - by laserhel50 - 18.11.2009, 21:53
Re: Command Not Working Correctly - by laserhel50 - 19.11.2009, 07:59
Re: Command Not Working Correctly - by [03]Garsino - 19.11.2009, 08:15

Forum Jump:


Users browsing this thread: 2 Guest(s)