How to Creat Gates?(HELP)
#6

Yes. Use IsPlayerInRangeOfPoint.
pawn Code:
CMD:zombieo(playerid, params[])
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{    
     if(IsPlayerInRangeOfPoint(playerid, 15, -2315.3188476563, -2169.1782226563, 35))
     {
     MoveObject(zombiegate, -2315.3188476563, -2169.1782226563, 35, 5);  
     SendClientMessage(playerid, 0xFFFFFF, "You take remote console and open the gate...");
     }
     else
     {
      SendClientMessage(playerid, 0XFFFFFF, "You need to be near the gate to open it");
      }
}
else
{      
     SendClientMessage(playerid, 0xAA3333AA, "You don't Have remote console of this gate.");
}    
     return 1;
}
Reply


Messages In This Thread
How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 20:08
Re: How to Creat Gates?(HELP) - by Rssc - 21.08.2011, 20:21
Re: How to Creat Gates?(HELP) - by Darnell - 21.08.2011, 20:23
Re: How to Creat Gates?(HELP) - by ricardo178 - 21.08.2011, 20:31
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 21:00
Re: How to Creat Gates?(HELP) - by Rssc - 21.08.2011, 21:22
Re: How to Creat Gates?(HELP) - by Join7 - 21.08.2011, 21:25
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 21:27
Re: How to Creat Gates?(HELP) - by Rssc - 21.08.2011, 21:29
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 21:43
Re: How to Creat Gates?(HELP) - by Rssc - 21.08.2011, 22:05
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 22:22
Re: How to Creat Gates?(HELP) - by Rssc - 21.08.2011, 22:55
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 23:11
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 23:30
Re: How to Creat Gates?(HELP) - by Rssc - 21.08.2011, 23:37
Re: How to Creat Gates?(HELP) - by ServerScripter - 21.08.2011, 23:44
Re: How to Creat Gates?(HELP) - by Rssc - 22.08.2011, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)