12.02.2011, 23:43
Where is the problem, please help !
Commads Gates open shows, but nothink can happen
Commads Gates open shows, but nothink can happen
Код:
/* Fs By Splitx LS Edition */ #include <a_samp> #pragma tabsize 0 #define COLOR_YELLOW 0xFFFF00AA #define FILTERSCRIPT forward GateClose(); #if defined FILTERSCRIPT new pdgate; new pdngate; public OnFilterScriptInit() { pdgate = CreateObject(968, 1551.5343017578, -1672.6416015625, 15.671875, 0.0000, 0.0000, 90.0000); pdngate = CreateObject(968, 1551.5343017578, -1672.6416015625, 15.671875, 0.0000, 0.0000, 90.0000); print("\n--------------------------------------"); print(" PDGate FS BY Splitx"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/pdopen", true)==0) { MoveObject(pdgate,1551.5343017578, -1672.6416015625, 15.671875, 3.5); MoveObject(pdngate,1551.5343017578, -1672.6416015625, 15.671875, 3.5); SetTimer("GateClose", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"gates open"); return 1; } return 0; } public GateClose() { MoveObject (pdgate,1551.5343017578, -1672.6416015625, 15.671875, 2.5); MoveObject (pdngate, 1551.5343017578, -1672.6416015625, 15.671875, 2.5); return 1; }