[HELP]
#1

hey can you make a Movable gate with this?

"Close"
CreateObject(980,1077.69519043,-1205.89270020,19.94162560,0.00000000,0.00000000,0. 00000000);
//object(airportgate) (1)


"Open"
CreateObject(980,1075.85644531,-1206.96875000,13.44162560,0.00000000,0.00000000,26 3.9959716; //object(airportgate) (2)
Reply
#2

Put this under public OnPlayerText(playerid, text[])
{

Код:
if (!strcmp("/open", cmdtext, true))
{
MoveObject(airportgate,1075.85644531,-1206.96875000,13.44162560, 2);
return 1;
}

if (!strcmp("/close", cmdtext, true))
{
MoveObject(airportgate,1077.69519043,-1205.89270020,19.94162560, 2);
return 1;
}
Put this under public OnGameModeInit()
{

Код:
new airportgate;
airportgate = CreateObject(980,1077.69519043,-1205.89270020,19.94162560,0.00000000,0.00000000,0. 00000000);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)