command whit gate
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/opengate", cmdtext, true, 9))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z); // X Y and Z mean the Coordinates
{    
      MoveObject(playerid, X, Y, Z, Float:Speed);
      SendClientMessage(playerid, collor, "You has open the gate."); // change the color what u want, and the coords X,Y and Z, Float:Speed = opening speed of the gate
      }else{
      SendClientMessage(playerid, collor, "You are not near the gate."); // change the color what u want.
      }
}
Good Luck
Reply


Messages In This Thread
command whit gate - by alexandre_deregio - 09.10.2010, 23:33
Re: command whit gate - by Luis- - 09.10.2010, 23:36
Re: command whit gate - by alexandre_deregio - 09.10.2010, 23:53
Re: command whit gate - by Luis- - 09.10.2010, 23:54
Re: command whit gate - by alexandre_deregio - 10.10.2010, 00:34
Re: command whit gate - by [Lsrcr]Rafa - 10.10.2010, 00:41
Re: command whit gate - by alexandre_deregio - 10.10.2010, 00:59
Re: command whit gate - by [Lsrcr]Rafa - 10.10.2010, 01:12
Re: command whit gate - by alexandre_deregio - 10.10.2010, 01:35
Re: command whit gate - by Tommie1331 - 10.10.2010, 01:41

Forum Jump:


Users browsing this thread: 2 Guest(s)