| picasSoO | Дата: Четверг, 28.08.2008, 09:44 | Сообщение # 18 |
|
Освоившийся
Группа:
Продвинутые
Сообщений: 93
Награды: 1
Город: Екатеринбург
Репутация: 8
Замечания: 0%
Статус: 
| Code #include <a_samp> #pragma tabsize 0 #define COLOR_YELLOW 0xFFFF00AA #define FILTERSCRIPT
forward GateCloseSAPD(); forward GateClosearm(); forward GateClosearmk(); forward GateClosecjv(); forward GateCloseadm(); forward GateCloseadm1(); forward GateCloseadm2(); forward GateCloseadm3();
#if defined FILTERSCRIPT new SAPD; // ворота полиции 1 город new arm; // ворота военных 2 город new armk; // ворота военных 2 город new cjv; new adm; // ворота админов new adm1; // ворота админов new adm2; // ворота админов new adm3; public OnFilterScriptInit() { SAPD = CreateObject(971, 1588.5617, -1638.1036, 12.7200, 0.0000,0.0000,0.0000); // ворота 1 город cjv = CreateObject(980,2459.3435,-1658.5782,15.3299,0.0000,0.0000,91.0000);// ворота база cj arm = CreateObject(980,-1529.5415,481.9517,8.9874,0.0000,0.0000,0.0000);// ворота ментовка armk = CreateObject(987,-1422.0286,500.5589,1.9390,0.0000,0.0000,270.0000);// ворота армии cjv = CreateObject(980,2459.3435,-1658.5782,15.3299,0.0000,0.0000,91.0000);// ворота база cj adm = CreateObject(980,-2465.4650,2314.3693,6.6359,0.0000,0.0000,-6.0000);// vorota adm1 = CreateObject(980,-2552.7863,2290.7700,6.6359,0.0000,0.0000,39.0999);// vorota adm2 = CreateObject(980,-2426.9736,2312.8723,6.7843,0.0000,0.0000,89.2999);// vorota adm3 = CreateObject(980,-2331.2880,2222.6477,1.5943,0.0000,0.0000,0.0000);// ворота у админов return 1; }
public OnFilterScriptExit() { return 1; }
#endif
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/сopen", true)==0) { MoveObject(SAPD, 1588.56, -1638.42, 13.90, 3); SetTimer("GateCloseSAPD", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/cjopen", true)==0) { MoveObject(cjv, 2459.3435,-1658.5782,15.3299, 3); SetTimer("GateClosecjv", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/armopen", true)==0) { MoveObject(arm, -1529.5415,481.9517,8.9874, 3); SetTimer("GateClosearm", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In LS Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/armkopen", true)==0) { MoveObject(armk, -1422.0286,500.5589,1.9390, 3); SetTimer("GateClosearmk", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/adm", true)==0) { MoveObject(adm, -2465.4650,2314.3693,6.6359, 3); SetTimer("GateCloseadm", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In LS Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/adm1", true)==0) { MoveObject(adm1, -2552.7863,2290.7700,6.6359, 3); SetTimer("GateCloseadm1", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/admv", true)==0) { MoveObject(adm2, -2426.9736,2312.8723,6.7843, 3); SetTimer("GateCloseadm2", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In SF Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/admv1", true)==0) { MoveObject(adm3, -2331.2880,2222.6477,1.5943, 3); SetTimer("GateCloseadm3", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In SF Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } return 0; }
public GateCloseSAPD() { MoveObject(SAPD, 1588.56, -1638.42, 13.90, 3); return 1; } public GateClosecjv() { MoveObject(cjv, 2459.3435,-1658.5782,15.3299, 3); return 1; } public GateClosearm() { MoveObject(arm, -1529.5415,481.9517,8.9874, 3); return 1; } public GateClosearmk() { MoveObject(armk, -1422.0286,500.5589,1.9390, 3); return 1; } public GateCloseadm() { MoveObject(adm, -2465.4650,2314.3693,6.6359, 3); return 1; } public GateCloseadm1() { MoveObject(adm1, -2552.7863,2290.7700,6.6359, 3); return 1; } public GateCloseadm2() { MoveObject(adm2, -2426.9736,2312.8723,6.7843, 3); return 1; } public GateCloseadm3() { MoveObject(adm3, -2331.2880,2222.6477,1.5943, 3); }
|
| |
|
|