help wth if the player is not in the point
#2

Quote:
Originally Posted by glob1234
I need a small amount of help, ive made a script for a /opengate using "playetopoint"
How do you make it so that if the player is not in the area that a message will come up
like "You cant do this here"

Код:
	if(strcmp(cmdtext,"/opengate", true) == 0)
 {
   if (gTeam[playerid] == TEAM_POLICE)
   {
		if(PlayerToPoint(15.0, playerid,2333.207764, 2440.335449, 5.064778))
		{
 	  MoveObject(LVPDgate, 2333.207764, 2440.335449, 0.064778, 1.500000);
 	  return 1;
    }
Thats what we got so far.
pawn Код:
if(strcmp(cmdtext,"/opengate", true) == 0)
    {
    if (gTeam[playerid] == TEAM_POLICE)
    {
        if(PlayerToPoint(15.0, playerid,2333.207764, 2440.335449, 5.064778))
        {
            MoveObject(LVPDgate, 2333.207764, 2440.335449, 0.064778, 1.500000);
            return 1;
        }
        else
        {
            SendClientMessage(playerid,COLOR_COLOR,"You arn't at the correct location");
        }
       
    }
Reply


Messages In This Thread
help wth if the player is not in the point - by glob1234 - 19.02.2009, 18:53
Re: help wth if the player is not in the point - by Norn - 19.02.2009, 19:00
Re: help wth if the player is not in the point - by Lazarus - 19.02.2009, 19:03
Re: help wth if the player is not in the point - by Norn - 19.02.2009, 19:07
Re: help wth if the player is not in the point - by glob1234 - 19.02.2009, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)