gate question
#1

with whatever command you close a gate? Code please
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  	if(strcmp(cmdtext, "/open", true) == 0)
  	{
    new string[50];
    new movetime = MoveObject(obj, 226.70172119141, 1872.1501464844, 18.659656524658, 2.00);
    format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
    SendClientMessage(playerid, 0xFF000000, string);
    return 1;
  	}
  	return 0;
}
Reply
#2

Quote:
Originally Posted by justinkomnuga
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/close", true) == 0)
    {
    MoveObject(obj, X, Y, Z, 5);
    SendClientMessage(playerid, 0xFF000000, "Gate is closing");
    return 1;
    }
    return 0;
}
X, Y, Z are the coords of the old position (where the object has been spawned mostly =P)
Reply
#3

Quote:
Originally Posted by Last_Stand_Guardian
Quote:
Originally Posted by justinkomnuga
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/close", true) == 0)
    {
    MoveObject(obj, X, Y, Z, 5);
    SendClientMessage(playerid, 0xFF000000, "Gate is closing");
    return 1;
    }
    return 0;
}
X, Y, Z are the coords of the old position (where the object has been spawned mostly =P)
and how can get an automatic alert message to go to a certain action
Reply
#4

Jesus Christ, can't you stop making like 100000000000 of topics for your gate problems.

I answered your question in THIS thread already.
Reply
#5

Quote:
Originally Posted by Jay420
Jesus Christ, can't you stop making like 100000000000 of topics for your gate problems.

I answered your question in THIS thread already.
yes but when I asked not how you create an alert message? so how do you make an alert message that will appear automatically for after a certain action.

I have no answer?««««
Reply
#6

If you , mate if I can call you so , really want to get this gate thing visit this thread :

CLICK HERE
Reply
#7

Quote:
Originally Posted by justinkomnuga
Quote:
Originally Posted by Jay420
Jesus Christ, can't you stop making like 100000000000 of topics for your gate problems.

I answered your question in THIS thread already.
yes but when I asked not how you create an alert message? so how do you make an alert message that will appear automatically for after a certain action.

I have no answer?««««
Use the


SendClientMessage after a player types the command.
Reply
#8

Quote:
Originally Posted by Daedalus
If you , mate if I can call you so , really want to get this gate thing visit this thread :

CLICK HERE
that code does not work all I have tried so many times
Reply
#9

Quote:
Originally Posted by Daedalus
Quote:
Originally Posted by justinkomnuga
Quote:
Originally Posted by Jay420
Jesus Christ, can't you stop making like 100000000000 of topics for your gate problems.

I answered your question in THIS thread already.
yes but when I asked not how you create an alert message? so how do you make an alert message that will appear automatically for after a certain action.

I have no answer?««««
Use the


SendClientMessage after a player types the command.
how do I paste that in between then? and then when the gate opened by someone who then alert everyone gets to see but I would like announce the alert text to see
Reply
#10

Quote:
Originally Posted by justinkomnuga
Quote:
Originally Posted by Jay420
Jesus Christ, can't you stop making like 100000000000 of topics for your gate problems.

I answered your question in THIS thread already.
yes but when I asked not how you create an alert message? so how do you make an alert message that will appear automatically for after a certain action.

I have no answer?««««
SO WAIT FOR AN ANSWER AND STOP SPAMMING THE BOARDS!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)