command whit gate - 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: command whit gate (
/showthread.php?tid=182298)
command whit gate -
alexandre_deregio - 09.10.2010
I dont know if this message are already psot but i need help to add command to my gate for open it
Re: command whit gate -
Luis- - 09.10.2010
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
}
Re: command whit gate -
alexandre_deregio - 09.10.2010
Ok thanks but where i put this ?
Re: command whit gate -
Luis- - 09.10.2010
Quote:
Originally Posted by alexandre_deregio
Ok thanks but where i put this ?
|
OnPlayerCommandText
Re: command whit gate -
alexandre_deregio - 10.10.2010
Exemple or screen ?
Re: command whit gate -
[Lsrcr]Rafa - 10.10.2010
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
Re: command whit gate -
alexandre_deregio - 10.10.2010
Im very noob lol if you ave a tuto please show it to me
Re: command whit gate -
[Lsrcr]Rafa - 10.10.2010
nope i dont have tutorial
btw just follow the steps and u will make gate...
Re: command whit gate -
alexandre_deregio - 10.10.2010
But I dont want to make gate I jsute want to Create a comamnd for the gate
Re: command whit gate -
Tommie1331 - 10.10.2010
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