10.09.2008, 05:35
Well this is the way I make my gates, you can see the similarities:
Код:
new LSPDGATE1;
Код:
LSPDGATE1 = CreateObject(980, 1549.747925, -1628.123291, 15.156204, 0.0000, 0.0000, 270.0000);
Код:
if(strcmp(cmdtext, "/LSPD1CLOSE", true)==0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
MoveObject (LSPDGATE1,1549.747925, -1628.123291, 15.156204, 1.692236);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not a Cop / FBI / Task Force");
}
return 1;
}
if(strcmp(cmdtext, "/LSPD1OPEN", true)==0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
MoveObject (LSPDGATE1,1549.747925, -1628.123291, 15.156204, 1.692236);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not a Cop / FBI / Task Force");
}
return 1;
}
Quote:
|
Originally Posted by NEW_IE
Now for your Commands
IF you just want it for were ever your at then heres a good example of a cmd with 1 gate. Код:
if (strcmp(cmdtext, "/og1", true)==0){
SendClientMessage(playerid,COLOR_GREY,"YOUR TEXT HERE.");
MoveObject (gate1,0.0,0.0,0.0,SPEED); //minimun speed=3.0
return 1;
}if (strcmp(cmdtext, "/cg1", true)==0){
SendClientMessage(playerid,COLOR_GREY,"YOUR TEXT HERE");
MoveObject (gate1,0.0,0.0,0.0, SPEED);//minimun speed=3.0
return 1; ^
}
|

