Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp> //
- #include <streamer> //
- #define EDITGANG 1001 //
- #define GANGBASE 1002 //
- #define TELEPORTS 1003 //
- #define VEHICLES 1004 //
- #define TERRITORY 1005 //
- //----------------------------------//
- //----------------------------------//
- new tp; // //
- new tp1; // //
- new tp2; // //
- new tp3; // //
- new tp4; // //
- new tp5; // TELEPORTS //
- new tp6; // //
- new tp7; // //
- new tp8; // //
- new tp9; // //
- new tp10; // //
- //----------------------------------//
- //----------------------------------//
- new Text3D:ltp; // //
- new Text3D:ltp1; // //
- new Text3D:ltp2; // //
- new Text3D:ltp3; // //
- new Text3D:ltp4; // //
- new Text3D:ltp5; // TELEPORT //
- new Text3D:ltp6; // TEXTS //
- new Text3D:ltp7; // //
- new Text3D:ltp8; // //
- new Text3D:ltp9; // //
- new Text3D:ltp10; // //
- //----------------------------------//
- //----------------------------------//
- new hp; // Health //
- new ar; // Pickups //
- //----------------------------------//
- //----------------------------------//
- new mg; // Weapon //
- new rk; // Pickups //
- //----------------------------------//
- //----------------------------------//
- new Text3D:thouse; // Gang House //
- new ghouse; // Pickup //
- //----------------------------------//
- //----------------------------------//
- new Text3D:textloot;// Loot //
- new loot; // Pickup //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new heal_timer; // Heal Pickups //
- new armour_timer; // Cooldown //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new minigun_timer; // Weapons Pickups //
- new rocket_timer; // Cooldown //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new ghouse_timer; // Gang Pickup Protection //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new base_timer; // Base Protection //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new wp_timer; // Weapons Protection //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new gate; // Gate Creator //
- new Text3D:ganggate; // Gate Text //
- //------------------------------------------------------//
- //------------------------------------------------------//
- new teleport; // Create Teleport Protection #0 //
- new teleport1; // Create Teleport Protection #1 //
- new teleport2; // Create Teleport Protection #2 //
- new teleport3; // Create Teleport Protection #3 //
- new teleport4; // Create Teleport Protection #4 //
- new teleport5; // Create Teleport Protection #5 //
- new teleport6; // Create Teleport Protection #6 //
- new teleport7; // Create Teleport Protection #7 //
- new teleport8; // Create Teleport Protection #8 //
- new teleport9; // Create Teleport Protection #9 //
- new teleport10; // Create Teleport Protection #10 //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX; // //
- new Float:posY; // //
- new Float:posZ; // Gang //
- new Float:posA; // Spawn //
- new GangSpawn; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX0; // //
- new Float:posY0; // //
- new Float:posZ0; // Teleport //
- new Float:posA0; // #0 //
- new Saved0; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX1; // //
- new Float:posY1; // //
- new Float:posZ1; // Teleport //
- new Float:posA1; // #1 //
- new Saved1; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX2; // //
- new Float:posY2; // //
- new Float:posZ2; // Teleport //
- new Float:posA2; // #2 //
- new Saved2; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX3; // //
- new Float:posY3; // //
- new Float:posZ3; // Teleport //
- new Float:posA3; // #3 //
- new Saved3; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX4; // //
- new Float:posY4; // //
- new Float:posZ4; // Teleport //
- new Float:posA4; // #4 //
- new Saved4; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX5; // //
- new Float:posY5; // //
- new Float:posZ5; // Teleport //
- new Float:posA5; // #5 //
- new Saved5; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX6; // //
- new Float:posY6; // //
- new Float:posZ6; // Teleport //
- new Float:posA6; // #6 //
- new Saved6; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX7; // //
- new Float:posY7; // //
- new Float:posZ7; // Teleport //
- new Float:posA7; // #7 //
- new Saved7; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX8; // //
- new Float:posY8; // //
- new Float:posZ8; // Teleport //
- new Float:posA8; // #8 //
- new Saved8; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX9; // //
- new Float:posY9; // //
- new Float:posZ9; // Teleport //
- new Float:posA9; // #9 //
- new Saved9; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX10; // //
- new Float:posY10; // //
- new Float:posZ10; // Teleport //
- new Float:posA10; // #10 //
- new Saved10; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Float:posX11; // //
- new Float:posY11; // //
- new Float:posZ11; // BASE //
- new Float:posA11; // //
- new Saved11; // //
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- new Makingzone; // //
- new Float:ZMinX; // //
- new Float:ZMaxX; // //
- new Float:ZMinY; // Create //
- new Float:ZMaxY; // Territory //
- new GangZone; // //
- new Create; // //
- new Tprotection;
- //--------------------------------------------------------------//
- //--------------------------------------------------------------//
- public OnFilterScriptInit()
- {
- new string[128], Year, Month, Day, Hour, Minute, Second;
- gettime(Hour, Minute, Second);
- getdate(Year, Month, Day);
- print("\n´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´¶´´´¶´´´´´´´´´¶´´´¶´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´¶´´¶¶´´´´´´´´´¶¶´´¶´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´¶¶´¶¶¶´´´´´´´¶¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´¶¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶¶´´´´´´´´´´´´");
- print("´´´´´´´´´´´¶¶´´´´´´¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶´´´´´´¶¶´´´´´´´´´´´");
- print("´´´´´´´´´´´¶¶´´´´´¶¶¶´´´´¶¶¶¶´´¶¶¶¶¶´´´´¶¶¶´´´´´¶¶¶´´´´´´´´´´");
- print("´´´´´´´¶´´¶¶¶´´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´¶´´´´´´´");
- print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
- print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶´´´´´´´´");
- print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
- print("´´´´´´¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶´´´´´´");
- print("´´´´´¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶´´´´´");
- print("´´´´¶¶¶¶´´´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´´´¶¶¶¶´´´´");
- print("´´´¶¶¶¶´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´´´");
- print("´´´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶´´´´");
- print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
- print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
- print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶´´´´´");
- print("´´´´´´¶¶¶¶¶¶¶´´´´´´´..´´´´´¶¶¶¶¶¶¶¶´´´´´´..´´´´¶¶¶¶¶¶¶´´´´´´´");
- print("´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´");
- print("´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´");
- print("´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´´´´´´´´´´´´´´´´´´´´´");
- format(string,sizeof(string),"[%02d/%02d/%d | %02d:%02d:%02d] Gang System V2.7 successfully loaded!\n", Day, Month, Year, Hour, Minute, Second);
- print(string);
- return 1;
- }
- public OnFilterScriptExit()
- {
- new string[128], Year, Month, Day, Hour, Minute, Second;
- gettime(Hour, Minute, Second);
- getdate(Year, Month, Day);
- DestroyDynamicCP(tp); //--------------------------------//
- DestroyDynamicCP(tp1); // //
- DestroyDynamicCP(tp2); // //
- DestroyDynamicCP(tp3); // //
- DestroyDynamicCP(tp4); // //
- DestroyDynamicCP(tp5); // //
- DestroyDynamicCP(tp6); // //
- DestroyDynamicCP(tp7); // //
- DestroyDynamicCP(tp8); // //
- DestroyDynamicCP(tp9); // //
- DestroyDynamicCP(tp10); // //
- Delete3DTextLabel(ltp1); // //
- Delete3DTextLabel(ltp2); // //
- Delete3DTextLabel(ltp3); // //
- Delete3DTextLabel(ltp4); //--------------------------------//
- Delete3DTextLabel(ltp5); // Destroy everythink //
- Delete3DTextLabel(ltp6); // after reload //
- Delete3DTextLabel(ltp7); //--------------------------------//
- Delete3DTextLabel(ltp8); // //
- Delete3DTextLabel(ltp9); // //
- Delete3DTextLabel(ltp10); // //
- Delete3DTextLabel(ganggate); // //
- Delete3DTextLabel(textloot); // //
- Delete3DTextLabel(thouse); // //
- DestroyDynamicPickup(hp); // //
- DestroyDynamicPickup(ar); // //
- DestroyDynamicPickup(loot); // //
- DestroyDynamicPickup(ghouse); // //
- DestroyDynamicPickup(mg); // //
- DestroyDynamicPickup(rk); // //
- DestroyDynamicPickup(mg); // //
- DestroyDynamicObject(gate); // //
- DestroyDynamicPickup(rk); // //
- GangZoneHideForAll(GangZone); //--------------------------------//
- print("\n´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´¶´´´¶´´´´´´´´´¶´´´¶´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´¶´´¶¶´´´´´´´´´¶¶´´¶´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´¶¶´¶¶¶´´´´´´´¶¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´¶¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶¶´´´´´´´´´´´´");
- print("´´´´´´´´´´´¶¶´´´´´´¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶´´´´´´¶¶´´´´´´´´´´´");
- print("´´´´´´´´´´´¶¶´´´´´¶¶¶´´´´¶¶¶¶´´¶¶¶¶¶´´´´¶¶¶´´´´´¶¶¶´´´´´´´´´´");
- print("´´´´´´´¶´´¶¶¶´´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´¶´´´´´´´");
- print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
- print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶´´´´´´´´");
- print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
- print("´´´´´´¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶´´´´´´");
- print("´´´´´¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶´´´´´");
- print("´´´´¶¶¶¶´´´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´´´¶¶¶¶´´´´");
- print("´´´¶¶¶¶´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´´´");
- print("´´´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶´´´´");
- print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
- print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
- print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶´´´´´");
- print("´´´´´¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶´´´´´");
- print("´´´´´´¶¶¶¶¶¶¶´´´´´´´..´´´´´¶¶¶¶¶¶¶¶´´´´´´..´´´´¶¶¶¶¶¶¶´´´´´´´");
- print("´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´");
- print("´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´");
- print("´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´¶¶´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´¶¶´´´´´´´´´´´´´´´´´´");
- print("´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´´´´´´´´´´´´´´´´´´´´´");
- format(string,sizeof(string),"[%02d/%02d/%d | %02d:%02d:%02d] Gang System V2.4 successfully unloaded!\n", Day, Month, Year, Hour, Minute, Second);
- print(string);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(GangSpawn == 0) SetPlayerPos(playerid,-2226.6367, 95.9487, 1036.0600),SetPlayerInterior(playerid, 1),SetPlayerFacingAngle(playerid, 0),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid, 0);
- if(GangSpawn == 1) SetPlayerPos(playerid, posX, posY, posZ+0.10),SetPlayerFacingAngle(playerid, posA),SetCameraBehindPlayer(playerid),ResetPlayerWeapons(playerid),GivePlayerWeapon(playerid,9,1),GivePlayerWeapon(playerid,24,6000),GivePlayerWeapon(playerid,26,6000),GivePlayerWeapon(playerid,32,6000),GivePlayerWeapon(playerid,31,6000),GivePlayerWeapon(playerid,34,6000);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/editgang", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- ShowPlayerDialog(playerid, EDITGANG ,DIALOG_STYLE_LIST,"{FF0000}EDIT GANG {FFFFFF}panel","{FF0000}Set Spawn\n{FF0000}Set Gang House\n{FF0000}Set Base\n{FF0000}Set Loot\n{FF0000}Set Health\n{FF0000}Set Armour\n{FF0000}Set Minigun\n{FF0000}Set Rocket\n{FF0000}Remove Weapons\n{FF0000}Remove Vehicles\n{FF0000}Set Vehicle\n{FF0000}Remove Teleports\n{FF0000}Set Teleport\n{FF0000}Set Territory\n{FF0000}Reload Gate\n{FF0000}Respawn Vehicles\n{00FF00}Export File","Select","Close");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/base", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, GANGBASE ,DIALOG_STYLE_LIST,"Base Teleports","{FFFF00}Gang Name","Teleport","Close");
- return 1;
- }
- if (strcmp("/gtloc 0", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved0 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX0, posY0, posZ0),GetPlayerFacingAngle(playerid, posA1);
- Saved0 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 1", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved1 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX1, posY1, posZ1),GetPlayerFacingAngle(playerid, posA1);
- Saved1 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 2", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved2 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX2, posY2, posZ2),GetPlayerFacingAngle(playerid, posA2);
- Saved2 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 3", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved3 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX3, posY3, posZ3),GetPlayerFacingAngle(playerid, posA3);
- Saved3 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 4", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved4 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX4, posY4, posZ4),GetPlayerFacingAngle(playerid, posA4);
- Saved4 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 5", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved5 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX5, posY5, posZ5),GetPlayerFacingAngle(playerid, posA5);
- Saved5 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 6", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved6 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX6, posY6, posZ6),GetPlayerFacingAngle(playerid, posA6);
- Saved6 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 7", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved7 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- SetPlayerPos(playerid, posX7, posY7, posZ7),GetPlayerFacingAngle(playerid, posA7);
- Saved7 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 8", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved8 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX8, posY8, posZ8),GetPlayerFacingAngle(playerid, posA8);
- Saved8 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 9", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved9 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX9, posY9, posZ9),GetPlayerFacingAngle(playerid, posA9);
- Saved9 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/gtloc 10", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- new string[128];
- if(Saved10 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
- GetPlayerPos(playerid, posX10, posY10, posZ10),GetPlayerFacingAngle(playerid, posA10);
- Saved10 = 1;
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
- }
- else
- {
- }
- return 1;
- }
- if (strcmp("/world", cmdtext, true, 10) == 0)
- {
- new string[32];
- format(string, sizeof(string), "Current World: %i", GetPlayerVirtualWorld(playerid));
- SendClientMessage(playerid, 0xCCCCCCCC, string);
- return 1;
- }
- if (strcmp("/angle", cmdtext, true, 10) == 0)
- {
- new Float:Angle, string[26];
- GetPlayerFacingAngle(playerid, Angle);
- format(string, sizeof(string), "Current Facing Angle: %0.2f", Angle);
- SendClientMessage(playerid, 0xCCCCCCCC, string);
- return 1;
- }
- // You have to manualy update gate direction once you add a new one everytime //
- /*
- if(strcmp("/og", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10, 957.1023, 2402.1531, 12.5997))
- {
- MoveDynamicObject(gate, 957.1023, 2402.1531, 18.1267, 3, 0, 0, 180);
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: You are not near any gate");
- }
- return 1;
- }
- if(strcmp("/cg", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10, 957.1023, 2402.1531, 12.5997))
- {
- MoveDynamicObject(gate, 957.1023, 2402.1531, 12.5997, 3, 0, 0, 180);
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: You are not near any gate");
- }
- return 1;
- }
- */
- return 0;
- }
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- if(pickupid == hp)
- {
- if(heal_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can heal only once every 2 minutes!");
- SetPlayerHealth(playerid,100),GameTextForPlayer(playerid, "~r~~h~Hp Filled", 2500, 3),heal_timer = SetTimerEx("heal_timer",200000,false,"i",playerid);
- }
- if(pickupid == ar)
- {
- if(armour_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can heal only once every 2 minutes!");
- SetPlayerArmour(playerid,100),GameTextForPlayer(playerid, "~b~~h~Armour Filled", 2500, 3),armour_timer = SetTimerEx("armour_timer",200000,false,"i",playerid);
- }
- if(pickupid == mg)
- {
- if(minigun_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can load this gun only once every 10 minutes!");
- GivePlayerWeapon(playerid, 38, 50),GameTextForPlayer(playerid, "~g~Gun loaded", 2500, 3),minigun_timer = SetTimerEx("minigun_timer",200000,false,"i",playerid);
- }
- if(pickupid == rk)
- {
- if(rocket_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can load this gun only once every 10 minutes!");
- GivePlayerWeapon(playerid, 35, 10),GameTextForPlayer(playerid, "~g~Gun loaded", 2500, 3),rocket_timer = SetTimerEx("rocket_timer",200000,false,"i",playerid);
- }
- if(pickupid == ghouse)
- {
- }
- if(pickupid == loot)
- {
- }
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == tp)
- {
- if(Saved0 == 1) SetPlayerPos(playerid, posX0, posY0, posZ0),SetPlayerFacingAngle(playerid, posA0),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp1)
- {
- if(Saved1 == 1) SetPlayerPos(playerid, posX1, posY1, posZ1),SetPlayerFacingAngle(playerid, posA1),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp2)
- {
- if(Saved2 == 1)SetPlayerPos(playerid, posX2, posY2, posZ2),SetPlayerFacingAngle(playerid, posA2),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp3)
- {
- if(Saved3 == 1)SetPlayerPos(playerid, posX3, posY3, posZ3),SetPlayerFacingAngle(playerid, posA3),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp4)
- {
- if(Saved4 == 1)SetPlayerPos(playerid, posX4, posY4, posZ4),SetPlayerFacingAngle(playerid, posA4),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp5)
- {
- if(Saved5 == 1)SetPlayerPos(playerid, posX5, posY5, posZ5),SetPlayerFacingAngle(playerid, posA5),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp6)
- {
- if(Saved6 == 1)SetPlayerPos(playerid, posX6, posY6, posZ6),SetPlayerFacingAngle(playerid, posA6),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp7)
- {
- if(Saved7 == 1)SetPlayerPos(playerid, posX7, posY7, posZ7),SetPlayerFacingAngle(playerid, posA7),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp8)
- {
- if(Saved8 == 1)SetPlayerPos(playerid, posX8, posY8, posZ8),SetPlayerFacingAngle(playerid, posA8),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp9)
- {
- if(Saved9 == 1)SetPlayerPos(playerid, posX9, posY9, posZ9),SetPlayerFacingAngle(playerid, posA9),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- if(checkpointid == tp10)
- {
- if(Saved10 == 1)SetPlayerPos(playerid, posX10, posY10, posZ10),SetPlayerFacingAngle(playerid, posA10),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == EDITGANG)
- {
- if(response)
- {
- if(listitem == 0)//GANG SPAWN
- {
- GetPlayerPos(playerid, posX, posY, posZ),GetPlayerFacingAngle(playerid, posA),SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Spawn saved!"),GangSpawn = 1;
- }
- if(listitem == 1)//GANG HOUSE
- {
- if(ghouse_timer > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Gang House can be saved only once!");
- new Float:x1, Float:y1, Float:z1;
- GetPlayerPos(playerid, x1, y1, z1);
- ghouse = CreateDynamicPickup(1239, 1, x1, y1, z1, -1);
- thouse = Create3DTextLabel("{FFFF00}/enter\n{FFFFFF}Gang House", -1, x1, y1, z1, 25.0, 0);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Gang House saved!");
- ghouse_timer = 1;
- }
- if(listitem == 2)//GANG BASE
- {
- if(base_timer > 1) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Base can by set only once!");
- GetPlayerPos(playerid, posX11, posY11, posZ11),GetPlayerFacingAngle(playerid, posA11),SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Base saved!"),Saved11 = 1;
- }
- if(listitem == 3)//GANG LOOT
- {
- Delete3DTextLabel(textloot);
- DestroyDynamicPickup(loot);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- loot = CreateDynamicPickup(1550, 1, x, y, z, -1);
- textloot = Create3DTextLabel("{CC9900}Gang Loot \n{FFFFFF}Money: {FF0000}999999999{FFFFFF}, Coins: {FF0000}123456789{FFFFFF}, Gems: {FF0000}1337\n{FFFFFF}/loot", -1, x, y, z, 25.0, 0);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Loot saved!");
- }
- if(listitem == 4)//GANG HEALTH
- {
- DestroyDynamicPickup(hp);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- hp = CreateDynamicPickup(1240, 1, x, y, z, -1);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Health saved!");
- }
- if(listitem == 5)//GANG ARMOUR
- {
- DestroyDynamicPickup(ar);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- ar = CreateDynamicPickup(1242, 1, x, y, z, -1);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Armour saved!");
- }
- if(listitem == 6)//GANG MINIGUN
- {
- DestroyDynamicPickup(mg);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- mg = CreateDynamicPickup(362, 1, x, y, z, -1);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Minigun saved!");
- }
- if(listitem == 7)//GANG ROCKET
- {
- DestroyDynamicPickup(rk);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- rk = CreateDynamicPickup(359, 1, x, y, z, -1);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Rocket saved!");
- }
- if(listitem == 8)//REMOVE WEAPONS
- {
- if(wp_timer > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Gang Weapons are not created!");
- DestroyDynamicPickup(mg);
- DestroyDynamicPickup(rk);
- Delete3DTextLabel(textloot);
- Delete3DTextLabel(thouse);
- DestroyDynamicPickup(hp);
- DestroyDynamicPickup(ar);
- DestroyDynamicPickup(loot);
- DestroyDynamicPickup(ghouse);
- DestroyDynamicObject(gate);
- Delete3DTextLabel(ganggate);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Weapons removed!");
- }
- if(listitem == 9)//REMOVE VEHICLES
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: This function is under development");
- }
- if(listitem == 10)//SET VEHICLES
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- ShowPlayerDialog(playerid, VEHICLES, DIALOG_STYLE_INPUT ,"{FF0000}Set Vehicle","Insert vehicle color bellow\n{FFFFFF}Example. carcolor1{FF0000}[colorid], {FFFFFF}carcolor2{FF0000}[colorid]","Create","Close");
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: You are not in a vehicle");
- }
- }
- if(listitem == 11)//REMOVE TELEPORTS
- {
- DestroyDynamicCP(tp);
- DestroyDynamicCP(tp1);
- DestroyDynamicCP(tp2);
- DestroyDynamicCP(tp3);
- DestroyDynamicCP(tp4);
- DestroyDynamicCP(tp5);
- DestroyDynamicCP(tp6);
- DestroyDynamicCP(tp7);
- DestroyDynamicCP(tp8);
- DestroyDynamicCP(tp9);
- DestroyDynamicCP(tp10);
- Delete3DTextLabel(ltp);
- Delete3DTextLabel(ltp1);
- Delete3DTextLabel(ltp2);
- Delete3DTextLabel(ltp3);
- Delete3DTextLabel(ltp4);
- Delete3DTextLabel(ltp5);
- Delete3DTextLabel(ltp6);
- Delete3DTextLabel(ltp7);
- Delete3DTextLabel(ltp8);
- Delete3DTextLabel(ltp9);
- Delete3DTextLabel(ltp10);
- SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleports removed!");
- }
- if(listitem == 12)//SET TELEPORTS
- {
- ShowPlayerDialog(playerid, TELEPORTS ,DIALOG_STYLE_LIST ,"{FF0000}Set Teleport","{FF0000}#0\n{FF0000}#1\n{FF0000}#2\n{FF0000}#3\n{FF0000}#4\n{FF0000}#5\n{FF0000}#6\n{FF0000}#7\n{FF0000}#8\n{FF0000}#9\n{FF0000}#10","Create","Close");
- }
- if(listitem == 13)//SET TERRITORY
- {
- ShowPlayerDialog(playerid, TERRITORY, 2,"{FF0000}Set Territory List","{FF0000}Create Territory\n{FF0000}Save Territory\n{FF0000}Destroy Territory","Select","Cancel");
- return 1;
- }
- if(listitem == 14)//RELOAD GATE
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: There is no gate loaded!");
- /*DestroyDynamicObject(gate);
- Delete3DTextLabel(ganggate);
- ganggate = Create3DTextLabel("If you are in this gang use {FFFF00}/opengate(/og) {FFFFFF}to open gate \nand {FFFF00}/closegate(/cg) {FFFFFF}to close gate! \n{FF0000}/Blowgate", -1, x, y, z, distance, 0);
- gate = CreateDynamicObject(objectid, x, y, z, rx, ry, rz);
- SendClientMessage(playerid, 0x00CC3300, "SUCCES: Gate reloaded!");*/
- }
- if(listitem == 15)//RESPAWN VEHICLES
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: This function is under development");
- }
- if(listitem == 16)//EXPORT FILE
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: This new function is under development");
- }
- }
- return 1;
- }
- if(dialogid == GANGBASE)// Save Base Teleport //
- {
- if(response)
- {
- if(Saved11 == 1)
- {
- SetPlayerPos(playerid, posX11, posY11, posZ11),SetPlayerFacingAngle(playerid, posA11),SetPlayerInterior(playerid, 0),SetCameraBehindPlayer(playerid),GameTextForPlayer(playerid,"~g~~h~Teleported",2000,3);
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000FF, "ERROR: Gang Base is not saved!");
- }
- }
- return 1;
- }
- if(dialogid == 1010)// Create Teleport #0 //
- {
- if(response)
- {
- if(teleport > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 25, -1, 0);
- ltp = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 0 to save teleport direction!");
- teleport = 1;
- }
- return 1;
- }
- if(dialogid == 1011)// Create Teleport #1 //
- {
- if(response)
- {
- if(teleport1 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp1 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 25, -1, 0);
- ltp1 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp1, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 1 to save teleport direction!");
- teleport1 = 1;
- }
- return 1;
- }
- if(dialogid == 1012)// Create Teleport #2 //
- {
- if(response)
- {
- if(teleport2 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp2 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp2 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp2, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 2 to save teleport direction!");
- teleport2 = 1;
- }
- return 1;
- }
- if(dialogid == 1013)// Create Teleport #3 //
- {
- if(response)
- {
- if(teleport3 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp3 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp3 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp3, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 3 to save teleport direction!");
- teleport3 = 1;
- }
- return 1;
- }
- if(dialogid == 1014)// Create Teleport #4 //
- {
- if(response)
- {
- if(teleport4 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp4 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp4 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp4, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 4 to save teleport direction!");
- teleport4 = 1;
- }
- return 1;
- }
- if(dialogid == 1015)// Create Teleport #5 //
- {
- if(response)
- {
- if(teleport5 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp5 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp5 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp5, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 5 to save teleport direction!");
- teleport5 = 1;
- }
- return 1;
- }
- if(dialogid == 1016)// Create Teleport #6 //
- {
- if(response)
- {
- if(teleport6 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp6 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp6 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp6, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 6 to save teleport direction!");
- teleport6 = 1;
- }
- return 1;
- }
- if(dialogid == 1017)// Create Teleport #7 //
- {
- if(response)
- {
- if(teleport7 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp7 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp7 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp7, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 7 to save teleport direction!");
- teleport7 = 1;
- }
- return 1;
- }
- if(dialogid == 1018)// Create Teleport #8 //
- {
- if(response)
- {
- if(teleport8 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp8 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp8 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp8, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 8 to save teleport direction!");
- teleport8 = 1;
- }
- return 1;
- }
- if(dialogid == 1019)// Create Teleport #9 //
- {
- if(response)
- {
- if(teleport9 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp9 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp9 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp9, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 9 to save teleport direction!");
- teleport9 = 1;
- }
- return 1;
- }
- if(dialogid == 1020)// Create Teleport #10 //
- {
- if(response)
- {
- if(teleport10 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- tp10 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
- ltp10 = Create3DTextLabel("", -1, x, y, z, 25, 0);
- Update3DTextLabelText(ltp10, -1, inputtext);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 10 to save teleport direction!");
- teleport10 = 1;
- }
- return 1;
- }
- if(dialogid == TELEPORTS)// Teleports List //
- {
- if(response)
- {
- if(listitem == 0)// Teleport 0 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1010 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 1)// Teleport 1 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1011 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 2)// Teleport 2 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1012 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 3)// Teleport 3 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1013 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 4)// Teleport 4 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1014 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 5)// Teleport 5 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1015 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 6)// Teleport 6 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1016 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 7)// Teleport 7 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1017 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 8)// Teleport 8 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1018 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 9)// Teleport 9 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1019 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- if(listitem == 10)// Teleport 10 - Dialog Menu //
- {
- ShowPlayerDialog(playerid, 1020 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
- }
- }
- return 1;
- }
- if(dialogid == VEHICLES)
- {
- if(response)
- {
- new CarSpawned[MAX_PLAYERS],currentveh;
- new Float: Pos[4];
- new vid = GetVehicleModel(GetPlayerVehicleID(playerid));
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- GetPlayerFacingAngle(playerid, Pos[3]);
- currentveh = GetPlayerVehicleID(playerid);
- DestroyVehicle(currentveh);
- CarSpawned[playerid] = AddStaticVehicleEx(vid, Pos[0], Pos[1], Pos[2], Pos[3], strval(inputtext),strval(inputtext), 0);
- LinkVehicleToInterior(CarSpawned[playerid], 0);
- SendClientMessage(playerid,0x00CC3300, "SUCCESS: Vehicle created!");
- }
- return 1;
- }
- if(dialogid == TERRITORY)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(Tprotection > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You already create an territory!");
- if(Makingzone == 1) return SendClientMessage(playerid,0xFF0000FF,"ERROR: You already created an zone! Remove it and try again!");
- ShowPlayerDialog(playerid,1,2,"{FF0000}Territory Colors","Blue\nRed\nGreen\nPurple\nYellow\nGrey\nLightblue\nWhite\nBlack","Select","Cancel");
- Makingzone = 1;
- Tprotection = 1;
- }
- if(listitem == 1)
- {
- if(Makingzone == 0) return SendClientMessage(playerid,0xFF0000FF,"ERROR: Create one first and try again!");
- new string[128];
- KillTimer(Create);
- format(string,sizeof(string),"GangZoneCreate(%f,%f,%f,%f);\r\n",ZMinX,ZMinY,ZMaxX,ZMaxY);
- SendClientMessage(playerid,0x00CC3300,"SUCCESS: Territory saved!");
- Makingzone = 0;
- }
- if(listitem == 2)
- {
- if(Makingzone == 0) return SendClientMessage(playerid,0xFF0000FF,"ERROR: You can remove an territory only while you editing!");
- KillTimer(Create);
- GangZoneDestroy(GangZone);
- Makingzone = 0;
- SendClientMessage(playerid,0x00CC3300,"SUCCESS: Territory removed!");
- }
- }
- }
- if(dialogid == 01)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0x0000FFAA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 1)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0xFF0000AA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 2)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0x00FF00AA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 3)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0xFF00FFAA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 4)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0xFFFF00AA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 5)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0x888888AA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 6)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0x00FFFFAA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 7)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0xFFFFFFAA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- if(listitem == 8)
- {
- new Float:Z;
- new color;
- GetPlayerPos(playerid,ZMinX,ZMinY,Z);
- color = 0x000000AA;
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
- }
- SendClientMessage(playerid,0x00CC3300,"SUCCESS: Territory created! Now check the minimap and use /editgang to save the size of the territory!");
- }
- else if(!response)
- {
- Makingzone = 0;
- }
- }
- return 0;
- }
- forward Createzone(playerid,color);
- public Createzone(playerid,color)
- {
- GangZoneHideForAll(GangZone);
- GangZoneDestroy(GangZone);
- new Float:Z;
- GetPlayerPos(playerid,ZMaxX,ZMaxY,Z);
- GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
- GangZoneShowForAll(GangZone,color);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement