03.12.2011, 11:11
Not sure if any of you actually saw, but he is using ZCMD with STRCMP.
Just delete the #include <zcmd>
Just delete the #include <zcmd>
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
//#include <zcmd>
new mcleod;
mcleod = Gate = CreateObject(969, 2464.1450195313, -1663.3859863281, 12.3046875, 0, 0, 87.912261962891); // Closed Gate
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;
}