How to create a single command which open and close same gate
#1

Hello guys, I am wondering how to create a command that can open and close the same gate.


This is the command I've created, but that only opens it, I want to use the same command to close it too.

Код:
CMD:rr(playerid, params[])
{
    SendClientMessage(playerid, COLOR_GREEN,"RR gate is open");
    MovePlayerObject(playerid, Gate4[playerid], -134.2530, 1125.6167, 16.9396, 1);
    Gate4[playerid] = CreateObject(11327, -134.2530, 1125.6167, 21.4020,  0.0000, 0.0000, -0.4200);
	return 1;
}
Also something that I want to know is how do I create a command that when I press /enter I can be set to a chosen place with my car.


Thanks!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)