- 0
Gate automate
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
ToX1c
As vrea si eu sa fac incat gatele sa se deschida cand clacxonezi..si sa poata deschide doar Pd,F.B.I,NG,tRACKRU.
#include <a_samp> #pragma tabsize 0 #define BLUE 0x0D7792AA new gate; new gate1; new gate2; forward GateClose(playerid); forward GateClose1(playerid); forward GateClose2(playerid); // This is a comment // uncomment the line below if you want to write a filterscript #define Filterscript #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Cop Gates By Shady91"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Cop Gates By Shady91"); print("----------------------------------\n"); } #endif public OnGameModeInit() { gate = CreateObject(968, 1544.745605, -1630.961792, 13.177118, 0.0000, 269.7592, 270.0000); CreateObject(994, 1544.744751, -1617.584961, 12.394474, 0.0000, 0.0000, 270.0000); CreateObject(994, 1543.487793, -1632.711548, 12.554396, 0.0000, 0.0000, 270.0000); gate1 = CreateObject(16773, 1591.846802, -1638.013550, 13.491905, 0.0000, 0.0000, 0.0000); CreateObject(1566, 1582.545532, -1637.891357, 13.580875, 0.0000, 0.0000, 0.0000); return 1; } public OnGameModeExit() { return 1; } public GateClose(playerid) { DestroyObject(gate); gate = CreateObject(968, 1544.745605, -1630.961792, 13.177118, 0.0000, 269.7592, 270.0000); return 1; } public GateClose1(playerid) { MoveObject(gate1, 1591.846802, -1638.013550, 13.491905, 0.8); return 1; } public GateClose2(playerid) { MoveObject(gate2, 1563.736816, -1617.390381, 12.382813, 0.8); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/pd", true)==0) { DestroyObject(gate); gate = CreateObject(968, 1544.746704, -1630.777222, 13.160947, 0.0000, 359.1406, 270.0000); SendClientMessage(playerid, BLUE, "PD Gate Opened It Will Close In 5 Seconds!"); SetTimer("GateClose", 5000, 0); return 1; } if (strcmp(cmdtext, "/pdgarage", true)==0) { MoveObject(gate1, 1591.738037, -1638.271606, -2.911936, 0.8); SendClientMessage(playerid, BLUE, "PD Garage Opened It Will Close In 10 Seconds!"); SetTimer("GateClose1", 10000, 0); return 1; } return 0; }1 answer to this question
Recommended Posts