| sanja116 | Дата: Суббота, 12.07.2008, 22:32 | Сообщение # 1 |
|
Освоившийся
Группа:
Продвинутые
Сообщений: 129
Награды: 1
Город: Tallinn
Репутация: 3
Замечания: 20%
Статус: 
| kak sdelat tak 4tobq mogli otkrqvat vorota tolko Police/FBI/Army Code /* Fs By Splitx LS Edition */
#include <a_samp>
#pragma tabsize 0 #define COLOR_YELLOW 0xFFFF00AA #define FILTERSCRIPT forward GateCloseLS(); forward GateCloseSF(); forward GateCloseLV(); #if defined FILTERSCRIPT new pdgateLS; new pdngateLS; new pdgateLV; new pdngateLV; new pdngate2LV; new pdgateSF; new pdngateSF; public OnFilterScriptInit() { pdgateLS = CreateObject(976, 1549.284668, -1626.937744, 12.544723, 0.0000, 0.0000, 90.0000); pdngateLS = CreateObject(976, 1549.304565, -1636.401001, 12.544723, 0.0000, 0.0000, 90.0000); pdgateLV = CreateObject(969, 2237.188965, 2448.813232, 9.845795, 0.0000, 0.0000, 90.0000); pdngateLV = CreateObject(976, 2320.069092, 2449.282471, 2.435347, 0.0000, 0.0000, 270.0000); pdngate2LV = CreateObject(976, 2320.052979, 2458.126953, 2.435347, 0.0000, 0.0000, 270.0000); pdgateSF = CreateObject(969, -1701.770020, 679.915344, 24.057503, 0.0000, 0.0000, 90.0000); CreateObject(969, -1700.105591, 688.051575, 24.057503, 0.0000, 0.0000, 0.0000); pdngateSF = CreateObject(969, -1571.713013, 665.608154, 6.336499, 0.0000, 0.0000, 270.0000); print("\n--------------------------------------"); print(" PDGate FS BY Splitx provided by www.samp-rus.com"); print("--------------------------------------\n"); return 1; }
public OnFilterScriptExit() { return 1; }
#endif
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/pdopenLS", true)==0) { MoveObject(pdgateLS,1549.270508, -1617.565308, 12.544723, 3.5); MoveObject(pdngateLS,1549.314697, -1645.918091, 12.517562, 3.5); SetTimer("GateCloseLS", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In LS Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/pdopenSF", true)==0) { MoveObject(pdgateSF,-1701.773193, 670.980530, 24.041584, 3.5); MoveObject(pdngateSF,-1571.828735, 656.457214, 6.354377, 3.5); SetTimer("GateCloseSF", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } if (strcmp(cmdtext, "/pdopenLV", true)==0) { MoveObject(pdgateLV,2237.127930, 2458.059570, 9.840160, 3.5); MoveObject(pdngateLV,2319.847656, 2461.079102, 2.435347, 3.5); MoveObject(pdngate2LV,2319.847656, 2461.079102, 2.435347, 3.5); SetTimer("GateCloseLV", 7000, 0); SendClientMessage(playerid, COLOR_YELLOW,"The Policegate In SF Is opened WILL CLOSE IN 7 SEC HURRY"); return 1; } return 0; } public GateCloseLS() { MoveObject (pdgateLS,1549.284668, -1626.937744, 12.544723, 2.5); MoveObject (pdngateLS, 1549.304565, -1636.401001, 12.544723, 2.5); return 1; } public GateCloseLV() { MoveObject (pdgateLV,2237.188965, 2448.813232, 9.845795, 2.5); MoveObject (pdngateLV,2320.069092, 2449.282471, 2.435347, 2.5); MoveObject (pdngate2LV,2320.052979, 2458.126953, 2.435347, 2.5); return 1; } public GateCloseSF() { MoveObject (pdngateSF,-1571.713013, 665.608154, 6.336499, 2.5); MoveObject (pdgateSF,-1701.770020, 679.915344, 24.057503, 2.5); return 1; }
|
| |
|
|
| OKStyle™ | Дата: Воскресенье, 13.07.2008, 08:39 | Сообщение # 2 |
|
Мастер джэдай
Группа:
I'm V.I.P.
Сообщений: 2444
Награды: 16
Город: Оренбург
Репутация: 1174
Замечания: 40%
Статус: 
| я тысячу раз писал... Есть 2 способа: 1) в команду добавить: if(gTeam[playerid] == Army) // не знаю как у тебя определяется команда 2) сделать проверку на скин: if(GetPlayerSkin(playerid) == 287) // 287 - военный
Да потому что когда человек делает на заказ он не старается. © kRiSyo Кланяимся нофаму королю анимаций =))))))) © Manusya В MTA - для вас все багоюзеры. Не юзают там +с только EFO и ACF. © SeWeR
|
| |
|
|