13.08.2010, 12:56
Okay i made a gate for my prison it's very cool... =] i learned how to do single gates now but i wanna learn how to do gates that can only be opened by The faction number.. i was kinda looking arround and i was trying to add this in the filterscript:
but i had like 4 errors so i don't think it's the right script for my filterscript.
This is the Script:
Thanks again.. and again
Karl1195.
Код:
if(TeamOfCops[playerid]==1 || TeamOfArmy[playerid]==3) {
This is the Script:
Код:
//by: Karl1195 #define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new gate; public OnFilterScriptInit() { gate = CreateObject(988,1781.16040039,-1534.00585938,8.56611252,0.00000000,0.00000000,87.33950806); //(ws_apgate) Yard 1 close return 1; } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/closeyardgate", cmdtext, true)) { MoveObject(gate,1781.16040039, -1534.00585938, 9, 2); return 1; } if(strcmp("/openyardgate", cmdtext, true)) { MoveObject(gate,1781.18664551,-1533.96008301, 11.65782928, 2); return 1; } return 0; }
Karl1195.