command whit gate
#1

I dont know if this message are already psot but i need help to add command to my gate for open it
Reply
#2

Please add more information, Also do you mean something like this?
pawn Код:
if (!strcmp("/opengate", cmdtext, true, 9))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z); // X Y and Z mean the Coordinates
// Code Here
}
Reply
#3

Ok thanks but where i put this ?
Reply
#4

Quote:
Originally Posted by alexandre_deregio
Посмотреть сообщение
Ok thanks but where i put this ?
OnPlayerCommandText
Reply
#5

Exemple or screen ?
Reply
#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
#7

Im very noob lol if you ave a tuto please show it to me
Reply
#8

nope i dont have tutorial

btw just follow the steps and u will make gate...
Reply
#9

But I dont want to make gate I jsute want to Create a comamnd for the gate
Reply
#10

that i the commands for the gate lol

give me the coords of the gate you want to move n ill make it for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)