09.02.2010, 10:03
Place below "#include <a_samp>"
Place in "public OnGameModeInit()"
Place in "public OnPlayerCommandText(playerid, cmdtext[])"
That will get the job done.
Код:
new Gate1;
Код:
CreateObject(987, 3180.2431640625, -1987.5537109375, 12.356931686401, 0.000000, 0.000000, 269); // [closed]
Код:
if (strcmp("/gate", cmdtext, true, 10) == 0) { if (gate == 0) { MoveObject(Gate1, 3180.2431640625, -1987.5537109375, 12.356931686401, 4.5000); gate=1; }else{ MoveObject(Gate1, 3180.1784667969, -1998.6683349609, 12.26300239563, 4.5000); gate=0; return 1; } }