gate question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: gate question (
/showthread.php?tid=139759)
gate question -
justinkomnuga - 06.04.2010
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;
}
Re: gate question -
Last_Stand_Guardian - 06.04.2010
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)
Re: gate question -
justinkomnuga - 06.04.2010
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
Re: gate question -
Jay420 - 06.04.2010
Jesus Christ, can't you stop making like 100000000000 of topics for your gate problems.
I answered your question in
THIS thread already.
Re: gate question -
justinkomnuga - 06.04.2010
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?««««
Re: gate question -
DeadalusNetwork - 06.04.2010
If you , mate if I can call you so , really want to get this gate thing visit this thread :
CLICK HERE
Re: gate question -
DeadalusNetwork - 06.04.2010
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.
Re: gate question -
justinkomnuga - 06.04.2010
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
Re: gate question -
justinkomnuga - 06.04.2010
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
Re: gate question -
biltong - 06.04.2010
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!