Quote:
Originally Posted by Kostas'
You should have the function CreateObject on OnFilterScriptInit() or OnGameModeInit() (If you were using it for GM.)
This should work.
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#include <zcmd>
new mcleod;
public OnFilterScriptInit() { mcleod = CreateObject(969, 2464.1450195313, -1663.3859863281, 12.3046875, 0, 0, 87.912261962891); // Closed Gate return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mcleodgateopen", cmdtext, true, 10) == 0) { MoveObject(mcleod,2463.7080078125,-1673.7354736327,12.3046875,2.00); // moving gate return 1; } if (strcmp("/mcleodgateclose", cmdtext, true, 10) == 0) { MoveObject(mcleod,2464.1450195313,-1663.3859863281,12.3046875,-2.00); // Same deal as before return 1; } return 0; } #endif
|
Thanks alot, it works with no warnings or errors