Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///HERE WEE GOOO///
- ///IN PLANE TO MAKE 3D LABELS UP PLAYERS NAME FOR SCORE///
- ///INCLUDSI/////
- #include < a_samp >
- #include < a_objects >
- #include < core >
- #include < float >
- #include < time >
- #include < morphinc >
- #include < file >
- #include < foreach >
- #include < streamer >
- #include < sscanf2 >
- #include < YSI\y_ini >
- #pragma tabsize 0
- //////////////////////
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 150
- ///////////////////////
- //////Defining "new"///
- new spawnwall;
- new freeze[MAX_PLAYERS];
- new healthpickup;
- new deaglepickup;
- new cspickup;
- new m4pickup;
- new dglizlpickup;
- new m41izlpickup;
- new RespawnCar;
- new m42izlpickup;
- new csizlpickup;
- new randommessages;
- new nrg;
- new acars[40];
- new nrgrace[6];
- new cswall;
- new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
- /////////////////////////////////
- #define IGRACI "Igraci/%s.ini"
- enum pInfo
- {
- pNovac,
- pUbistava,
- pSmrti,
- pScore
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- ////Defining "define"///
- #define LBLUE "{00C0FF}"
- #define WHITE "{FFFFFF}"
- #define ORANGE "{FFAF00}"
- #define YELLOW "{F3FF02}"
- #define GREEN "{6EF83C}"
- #define BLACK "{030001}"
- #define RED "{F81414}"
- #define GREY "{C0C0C0}"
- #define TGREEN "{8A0E65}"
- #define SCM SendClientMessage
- #define SCMTA SendClientMessageToAll
- #define MAX_CARS 3000
- #define AH_DIALOG 1
- #define HELP_DIALOG 2
- #define TEAMS 3
- #define TEAMS1 4
- #define OBJECTS 5
- #define MUSIC 6
- #define WHEELS 7
- #define PAINTJOB 8
- #define VCOLOR 9
- #define Path "Users/%s.ini"
- #define FIGHTSTYLE 10
- ////////////////////////
- new RandomMessages[][] =
- {
- "{0080FF}~ Bug abusing is restricted and you will get banned for that ~",
- "{0080FF}~ To find help about commands, use /help ~",
- "{0080FF}~ Marketing other servers is totally RESTRICTED and you wil get banned for that ~",
- "{0080FF}~ If you saw cheater, report him with command /report ~",
- "{0080FF}~ If you are stucked,type /Stuck ~",
- "{0080FF}~ If you want some fun with objects,type /objects ~",
- "{0080FF}~ Play nice and fair game-ITN team ~"
- };
- ////////////////////////
- main()
- {
- print("\n----------------------------------");
- print(" Wilco's script\n");
- print("----------------------------------\n");
- }
- public OnPlayerConnect(playerid)
- {
- ////
- DeleteObject(playerid);
- ////////////////////////
- new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "%s has joined the server", pname);
- SendClientMessageToAll(0xFFFFAF00, string);
- //////////////
- GameTextForPlayer(playerid,"~b~Welcome to Inuition DeathMatch\nRelax with us!",5000,5);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "%s has left the server. (Crash)", pname);
- case 1: format(string, sizeof(string), "%s has left the server. (Gone)", pname);
- case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
- }
- SendClientMessageToAll(0xFFFFAF00, string);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new idx;
- new cmd[256];
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/guns", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin!");
- SetPlayerArmour(playerid, 99.0);
- SetPlayerHealth(playerid, 99.0);
- GivePlayerWeapon(playerid,5,1);
- GivePlayerWeapon(playerid,24,200);
- GivePlayerWeapon(playerid,26,200);
- GivePlayerWeapon(playerid,28,200);
- GivePlayerWeapon(playerid,31,200);
- return 1;
- }
- //////////////////////////////////////////
- if(strcmp(cmd, "/jetpack", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SendClientMessage(playerid, -1, ""YELLOW"INFO | "WHITE"You took jetpack.Fly high bird! :D!");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
- }
- return 1;
- }
- ////////////////////////////////////////
- if(strcmp(cmd, "/askin", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SendClientMessage(playerid, -1, ""YELLOW"INFO | "WHITE"You took administrator skin!");
- SetPlayerSkin(playerid,98);
- }
- return 1;
- }
- /////////////////////////////////////
- if(strcmp(cmd, "/abase", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- new idv = GetPlayerVehicleID(playerid);
- SetVehiclePos(idv,324.19,-1497.97,25.27);
- SetPlayerPos(playerid, 324.19,-1497.97,25.27);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/cars", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- new idv = GetPlayerVehicleID(playerid);
- SetVehiclePos(idv,409.31,2484.51,17.16);
- SetPlayerPos(playerid, 409.31,2484.51,17.16);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/gotospawn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- SetPlayerPos(playerid, -14.0579,-2506.3613,36.6555);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/nitro", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""RED"[ERROR] "GREY"You have to be inside car to add nitro!");
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- SCM(playerid, -1, "INFO | "YELLOW"Nitro added!");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/vcolor", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""RED"[ERROR] "GREY"You have to be inside car to change color!");
- ShowPlayerDialog(playerid, VCOLOR, DIALOG_STYLE_LIST, ""WHITE"Choose color", ""WHITE"White\nBlue\nYellow\nRed\nGreen\nBlack", "Yes", "Don't Yes");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/hydraulics", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""RED"[ERROR] "GREY"You have to be inside car to set up hydraulic!");
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
- SCM(playerid, -1, "INFO | "YELLOW"You added hydraulic!");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/wheels", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""RED"[ERROR] "GREY"You have to be inside car to set up wheels!");
- ShowPlayerDialog(playerid, WHEELS, DIALOG_STYLE_LIST, ""WHITE"Tuning", ""WHITE"Offroad\nShadow\nMega\nRimshine\nWires\nClassic\nTwist\nCutter\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess", "Yes", "No");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/paintjob", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""RED"[ERROR] "GREY"You have to be inside car to change paintjob!");
- ShowPlayerDialog(playerid, PAINTJOB, DIALOG_STYLE_LIST, ""WHITE"Choose paintjob", ""WHITE"1\n2\n3\nDelete paintjob", "Yes", "No");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/fightst", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid, FIGHTSTYLE, DIALOG_STYLE_LIST, ""WHITE"Fighting style", ""WHITE"Kneehad\nKungfu\nBoxing\nGrabkick\nElbow\nNormal", "Izaberi", "Izadji");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/rac", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- new string[512]; RespawnCar = 1;
- format(string,sizeof string, ""LBLUE"<<< "GREY"Admin has started cars respawning "LBLUE">>>");
- SendClientMessageToAll(-1, string);
- SetTimer("Respawn", 10000, false);
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/fixcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""WHITE"[ITN] "YELLOW"You have to be inside the car to fix it!");
- RepairVehicle(GetPlayerVehicleID(playerid));
- SCM(playerid,-1,""RED"[ITN] "WHITE"Car fixed!");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/cc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- new string[128]; foreach(Player,i) { ClearChat(i, 120); }
- format(string,sizeof(string),""LBLUE"[ITN] "GREY"Administrator has cleared chat.");
- SCMTA(-1,string);
- }
- return 1;
- }
- /////////////////////////////////////
- if(strcmp(cmd, "/moneyall", true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- for(new i = 0; i<GetMaxPlayers();i++) {
- GivePlayerMoney(i,50000); }
- GameTextForAll("~g~ADMIN GIFT-50000$",2000, 3);
- return 1;
- }
- ////////////////////////////////////
- if(strcmp(cmd, "/scoreall", true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- for(new i = 0; i<GetMaxPlayers();i++) {
- SetPlayerScore(i, GetPlayerScore(i) + 200); }
- GameTextForAll("~g~ADMIN GIFT-200 SCORE",2000, 3);
- return 1;
- }
- ////////////////////////////////////
- if(strcmp(cmd, "/healall", true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- for(new i = 0; i<GetMaxPlayers();i++) {
- SetPlayerHealth(i,100); }
- GameTextForAll("~g~ADMIN GIFT-HEALTH",2000, 3);
- return 1;
- }
- ////////////////////////////////////
- if(strcmp(cmd, "/armorall", true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- for(new i = 0; i<GetMaxPlayers();i++) {
- SetPlayerArmour(i,100); }
- GameTextForAll("~g~ADMIN GIFT-ARMOR",2000, 3);
- return 1;
- }
- ////////////////////////////////////
- if(strcmp(cmd, "/kickall", true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- GameTextForAll("~g~ADMIN GIFT-KICK(haha)",2000, 3);
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- Kick(i);
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/aduty", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- new string[128]; new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string,sizeof(string),""RED"[ITN] "LBLUE"((Administrator %s is on duty.))", pname);
- SCMTA(-1,string);
- SetPlayerColor(playerid, 0xFF030001);
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/aoff", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- new string[128]; new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string,sizeof(string),""RED"[ITN] "LBLUE"((Administrator %s is out of duty.))", pname);
- SCMTA(-1,string);
- SetPlayerColor(playerid, 0xFFFFFFFF);
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/objects", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid, OBJECTS, DIALOG_STYLE_LIST, ""WHITE"OBJECTS", ""WHITE"M4 on your back\nTorch\nArmour\nPennis\nDollar\nCigarette\nFire bone\nHorse iron\nMoneybag\nParrot\nKatana\nWood cutter\nTree\nHydrant\nHyppo\nPiss", "Yes", "No");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/removeobjects", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- }
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/stopmusic", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- StopAudioStreamForPlayer(playerid);
- }
- return 1;
- }
- ///////////Commands for clock(sat mean clock,I'm lazy to change it)///////////////////////////
- if(strcmp("/sat1", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(1);
- }
- return 1;
- }
- if(strcmp("/sat2", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(2);
- }
- return 1;
- }
- if(strcmp("/sat3", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(3);
- }
- return 1;
- }
- if(strcmp("/sat4", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(4);
- }
- return 1;
- }
- if(strcmp("/sat5", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(5);
- }
- return 1;
- }
- if(strcmp("/sat6", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(6);
- }
- return 1;
- }
- if(strcmp("/sat7", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(7);
- }
- return 1;
- }
- if(strcmp("/sat8", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(1);
- }
- return 1;
- }
- if(strcmp("/sat9", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(9);
- }
- return 1;
- }
- if(strcmp("/sat10", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(10);
- }
- return 1;
- }
- if(strcmp("/sat11", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(11);
- }
- return 1;
- }
- if(strcmp("/sat12", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(12);
- }
- return 1;
- }
- if(strcmp("/sat13", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(13);
- }
- return 1;
- }
- if(strcmp("/sat14", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(14);
- }
- return 1;
- }
- if(strcmp("/sat15", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(15);
- }
- return 1;
- }
- if(strcmp("/sat16", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(16);
- }
- return 1;
- }
- if(strcmp("/sat17", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(17);
- }
- return 1;
- }
- if(strcmp("/sat18", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(18);
- }
- return 1;
- }
- if(strcmp("/sat19", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(19);
- }
- return 1;
- }
- if(strcmp("/sat20", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(20);
- }
- return 1;
- }
- if(strcmp("/sat21", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(21);
- }
- return 1;
- }
- if(strcmp("/sat22", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(22);
- }
- return 1;
- }
- if(strcmp("/sat23", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(23);
- }
- return 1;
- }
- if(strcmp("/sat24", cmdtext, true, 10) == 0) //ne radi
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- SetWorldTime(24);
- }
- return 1;
- }
- /////////////////////////////////////
- if(strcmp(cmd, "/kill", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SetPlayerHealth(playerid,0);
- SCM(playerid,-1,""RED"[ITN] "WHITE"You have killed yourself!");
- }
- return 1;
- }
- /////////////////////////////////////
- if(strcmp(cmd, "/stuck", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+2);
- TogglePlayerControllable(playerid, 1);
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/ao", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new sendername[MAX_PLAYER_NAME]; new string[128];
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- format(string, sizeof(string), "[ADMIN %s IS SPEAKING]>%s" , sendername, result);
- SendClientMessageToAll(0xFF8A0E65, string);
- printf("%s", string);
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/music", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- ShowPlayerDialog(playerid, MUSIC, DIALOG_STYLE_LIST, ""WHITE"MUSIC", ""WHITE"Dr.Dre ft.Snoop Dog-STILL\nOne Republic-Counting Stars\nLife is a Highway\nBob Marley-A lala long\nAvicii-Wake me up\nEllie Goulding - Burn\nPitbull - Timber ft. Ke$ha\nJason Derulo - Wiggle feat. Snoop Dogg\nEminem - Not Afraid\nPitbull - Rain Over Me ft. Marc Anthony\nTaylor Swift - Shake It Off\nWiz Khalifa - Black And Yellow", "Yes", "No");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/ah", true) == 0)
- {
- new info[2048];
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,-1,""RED"[ITN] "GREY"You are not the admin");
- {
- strcat(info, ""YELLOW"||===============================================[ "WHITE"Admin Commands "YELLOW"]=============================================||\n\n", sizeof(info));
- }
- {
- strcat(info, ""YELLOW"1 | "WHITE"/rcon cmdlist /nitro /abase /fixcar\n", sizeof(info));
- strcat(info, ""YELLOW"2 | "WHITE"/jetpack /gotospawn /sat(1-24-don't move number from word)\n", sizeof(info));
- strcat(info, ""YELLOW"3 | "WHITE"/askin /cc\n", sizeof(info));
- strcat(info, ""YELLOW"4 | "WHITE"/guns /moneyall\n", sizeof(info));
- strcat(info, ""YELLOW"5 | "WHITE"/music /scoreall\n", sizeof(info));
- strcat(info, ""YELLOW"6 | "WHITE"/hydraulics /healall\n", sizeof(info));
- strcat(info, ""YELLOW"7 | "WHITE"/Wheels /Armorall /specoff /aduty /ao\n", sizeof(info));
- strcat(info, ""YELLOW"8 | "WHITE"/paintjob\n", sizeof(info));
- strcat(info, ""YELLOW"9 | "WHITE"/kickall \n", sizeof(info));
- }
- {
- strcat(info, ""YELLOW"||===========================================================================================================||\n\n", sizeof(info));
- }
- ShowPlayerDialog(playerid, AH_DIALOG, DIALOG_STYLE_MSGBOX, ""GREY"Admin Commands", info, "Uredu", "");
- }
- return 1;
- }
- //////////////////////////////////////
- if(strcmp(cmd, "/help", true) == 0)
- {
- new info[2048];
- if(IsPlayerConnected(playerid))
- {
- {
- strcat(info, ""YELLOW"||===============================================[ "WHITE"Commands "YELLOW"]=============================================||\n\n", sizeof(info));
- }
- {
- strcat(info, ""YELLOW"1 | "WHITE"UPOZORENJE:When you want to enter to arena,just go to pickup and you will be teleported(no keys to enter)!\n", sizeof(info));
- strcat(info, ""YELLOW"2 | "WHITE"Also,you can find darts for leaving arena!\n", sizeof(info));
- strcat(info, ""YELLOW"3 | "WHITE"/Objects /removeobjects\n", sizeof(info));
- strcat(info, ""YELLOW"4 | "WHITE"/kill(da se respawnate) /stopmusic /stuck\n", sizeof(info));
- strcat(info, ""YELLOW"5 | "WHITE"/Will be something\n", sizeof(info));
- strcat(info, ""YELLOW"6 | "WHITE"/Will be something\n", sizeof(info));
- strcat(info, ""YELLOW"7 | "WHITE"/Will be something\n", sizeof(info));
- strcat(info, ""YELLOW"8 | "WHITE"/Will be something\n", sizeof(info));
- strcat(info, ""YELLOW"9 | "WHITE"/Will be something\n", sizeof(info));
- }
- {
- strcat(info, ""YELLOW"||===========================================================================================================||\n\n", sizeof(info));
- }
- ShowPlayerDialog(playerid, HELP_DIALOG, DIALOG_STYLE_MSGBOX, ""GREY"Commands", info, "Uredu", "");
- }
- return 1;
- }
- ///////////////////////////////////////
- return 0;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-21.5727,-2494.0205,36.6484);
- GivePlayerMoney(playerid, 1000);
- SetPlayerColor(playerid, 0xFFFFFFFF);
- TogglePlayerClock(playerid,0);
- /////////////////////
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- GivePlayerWeapon(playerid,0,0);
- GameTextForPlayer(playerid,"~b~Lay down!",5000,5);
- PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
- if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); //If not invalid killerid (not a vehicle, etcetra), gets current score and adds one to the killer.
- GivePlayerMoney(killerid, 1000);//Randomizes the amount of cash the person gets, 20000 - 30000
- SendDeathMessage(killerid, playerid, reason);
- SCM(playerid,-1,""GREEN"[KILL] "GREEN"Good kill");
- ///////////////////////////////
- if(GetPlayerWantedLevel(killerid) > 6)
- {
- SetPlayerWantedLevel(killerid, 6);
- }
- ///////////////////////////
- return 1;
- }
- SetupPlayerForClassSelection(playerid)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,1137.8224,-2036.7817,69.0078);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
- SetPlayerFacingAngle(playerid, 270.0);
- SetPlayerCameraPos(playerid, 1142.5664, -2037.3398, 69.0123);
- SetPlayerCameraLookAt(playerid, 1141.5653, -2037.3367, 68.9972);
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetupPlayerForClassSelection(playerid);
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == healthpickup)
- {
- SetPlayerHealth(playerid, 100);
- }
- if(pickupid == deaglepickup)
- {
- GivePlayerWeapon(playerid,24,1000);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid, 1299.2740,-150.0677,1001.0157);
- SetPlayerHealth(playerid, 100);
- }
- if(pickupid == cspickup)
- {
- ShowPlayerDialog(playerid, TEAMS, DIALOG_STYLE_LIST, ""WHITE"TEAMS", ""WHITE"Counter-Terorrist\nTerorrist", "Yes", "No");
- }
- if(pickupid == m4pickup)
- {
- ShowPlayerDialog(playerid, TEAMS1, DIALOG_STYLE_LIST, ""WHITE"TEAMS", ""WHITE"Blue tim\nRed tim", "Yes", "No");
- }
- if(pickupid == dglizlpickup)
- {
- SetPlayerPos(playerid, -21.5727,-2494.0205,36.6484);
- ResetPlayerWeapons(playerid);
- SCM(playerid,-1,""YELLOW"INFO "WHITE"You left arena!");
- }
- if(pickupid == m41izlpickup)
- {
- SetPlayerPos(playerid, -21.5727,-2494.0205,36.6484);
- SetPlayerColor(playerid, 0xFFFFFFFF);
- ResetPlayerWeapons(playerid);
- SCM(playerid,-1,""YELLOW"INFO "WHITE"You left arena!");
- }
- if(pickupid == m42izlpickup)
- {
- SetPlayerPos(playerid, -21.5727,-2494.0205,36.6484);
- SetPlayerColor(playerid, 0xFFFFFFFF);
- ResetPlayerWeapons(playerid);
- SCM(playerid,-1,""YELLOW"INFO "WHITE"You left arena!");
- }
- if(pickupid == csizlpickup)
- {
- SetPlayerPos(playerid, -21.5727,-2494.0205,36.6484);
- SetPlayerColor(playerid, 0xFFFFFFFF);
- ResetPlayerWeapons(playerid);
- SCM(playerid,-1,""YELLOW"INFO "WHITE"You left arena!");
- }
- if(pickupid == nrg)
- {
- SetPlayerPos(playerid, 1805.94,866.21,10.61);
- SetPlayerColor(playerid, 0xFFFFFFFF);
- ResetPlayerWeapons(playerid);
- SetPlayerCheckpoint(playerid, 1806.2673,1545.9546,6.7420, 3.0);
- SCM(playerid,-1,""YELLOW"INFO "WHITE"This is made for fucking with my friends,don't make attention on this shit!");
- }
- return 1;
- }
- public OnGameModeInit()
- {
- //////////Maps starts here--SPAWN/////
- spawnwall = CreateDynamicObject(19377, -23.70327, -2492.09912, 38.02996, 0.00000, 0.00000, -58.56002);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -31.84576, -2497.05322, 38.02996, 0.00000, 0.00000, -58.56002);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -33.28515, -2503.51465, 38.02996, 0.00000, 0.00000, 33.35999);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -28.07204, -2511.46460, 38.02996, 0.00000, 0.00000, 33.35999);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -22.84856, -2519.41675, 38.02996, 0.00000, 0.00000, 33.35999);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -10.58775, -2513.08643, 38.02996, 0.00000, 0.00000, -58.56002);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -18.68118, -2518.04565, 38.02996, 0.00000, 0.00000, -58.56002);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -9.04161, -2506.38770, 38.02996, 0.00000, 0.00000, 31.49998);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -14.00517, -2498.28564, 38.02996, 0.00000, 0.00000, 31.49998);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -16.88221, -2493.59644, 38.02996, 0.00000, 0.00000, 31.49998);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -15.50278, -2487.10181, 38.02996, 0.00000, 0.00000, -58.56002);
- SetDynamicObjectMaterial(spawnwall, 0, 13724, "docg01_lahills", "redbrickground256");
- spawnwall = CreateDynamicObject(19377, -21.08869, -2513.58862, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- spawnwall = CreateDynamicObject(19377, -12.98393, -2508.61597, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- spawnwall = CreateDynamicObject(19377, -26.77439, -2504.83472, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- spawnwall = CreateDynamicObject(19377, -18.63701, -2499.87329, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- spawnwall = CreateDynamicObject(19377, -24.03520, -2490.97607, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- spawnwall = CreateDynamicObject(19377, -32.27402, -2495.87451, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- spawnwall = CreateDynamicObject(19377, -40.14266, -2501.37500, 43.20713, 0.00000, 90.00000, -58.56000);
- SetDynamicObjectMaterial(spawnwall, 0, 16150, "ufo_bar", "GEwhite1_64");
- /////////////Gang War Ballas vs Groove///////
- CreateDynamicObject(987, 2237.27612, -1466.50635, 31.74547, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(987, 2326.37500, -1541.86426, 24.33899, 0.00000, 0.00000, 89.99998);
- CreateDynamicObject(987, 2326.37085, -1529.95532, 24.33899, 0.00000, 0.00000, 89.99998);
- CreateDynamicObject(987, 2326.47900, -1522.93103, 24.33899, 0.00000, 0.00000, 89.99998);
- CreateDynamicObject(987, 2306.64990, -1542.16113, 24.33899, 0.00000, 0.00000, 89.57998);
- CreateDynamicObject(987, 2306.74341, -1530.20752, 24.33899, 0.00000, 0.00000, 89.57998);
- CreateDynamicObject(987, 2306.56519, -1522.55188, 24.33899, 0.00000, 0.00000, 89.57998);
- CreateDynamicObject(987, 2318.74487, -1511.10889, 24.33899, 0.00000, 0.00000, 179.39999);
- CreateDynamicObject(987, 2326.78320, -1510.96606, 24.33899, 0.00000, 0.00000, 179.39999);
- CreateDynamicObject(987, 2317.47021, -1542.26086, 24.33899, 0.00000, 0.00000, 179.39999);
- CreateDynamicObject(987, 2326.59985, -1542.12439, 24.33899, 0.00000, 0.00000, 181.25996);
- ////////////////////////Deagle Arena///////////
- CreateObject(14784, 1296.41211, -144.34100, 1009.41412, 0.00000, 0.00000, 0.00000);
- CreateObject(1431, 1272.07581, -141.06673, 1000.62384, 0.00000, 0.00000, -79.07999);
- CreateObject(1431, 1272.25635, -143.03511, 1000.62384, 0.00000, 0.00000, -95.69998);
- CreateObject(1431, 1272.22388, -142.93817, 1001.66388, 0.00000, 0.00000, -95.69998);
- CreateObject(1431, 1271.99841, -146.61803, 1000.62384, 0.00000, 0.00000, -95.69998);
- CreateObject(1431, 1272.13574, -144.71025, 1000.62384, 0.00000, 0.00000, -95.69998);
- CreateObject(1431, 1272.08789, -145.36852, 1001.68085, 0.00000, 0.00000, -95.69998);
- CreateObject(1431, 1270.49670, -139.42172, 1000.62384, 0.00000, 0.00000, -31.55999);
- CreateObject(2991, 1278.52344, -144.17668, 1000.55664, 0.00000, 0.00000, -114.84000);
- CreateObject(2991, 1278.41040, -138.49489, 1000.55664, 0.00000, 0.00000, -62.34000);
- CreateObject(2991, 1278.98584, -141.42516, 1001.82471, 0.00000, 0.00000, -91.98003);
- CreateObject(3799, 1287.07434, -140.89650, 999.43518, 0.00000, 0.00000, 0.00000);
- CreateObject(3799, 1286.26514, -143.79953, 999.43518, 0.00000, 0.00000, 0.00000);
- CreateObject(3799, 1285.00879, -139.14891, 999.48767, 0.00000, 0.00000, 0.00000);
- CreateObject(3799, 1286.26904, -141.30959, 1001.51074, 0.00000, 0.00000, 0.00000);
- CreateObject(1230, 1286.73193, -143.71930, 1002.23047, 0.00000, 0.00000, 0.00000);
- CreateObject(1230, 1285.91675, -144.32571, 1002.23047, 0.00000, 0.00000, 0.00000);
- CreateObject(1230, 1286.60034, -144.94547, 1002.23047, 0.00000, 0.00000, 0.00000);
- CreateObject(7317, 1313.66760, -148.02199, 1003.79449, 0.00000, 0.00000, 0.00000);
- CreateObject(3593, 1294.05310, -132.89584, 1000.66925, 0.00000, 0.00000, -59.40000);
- CreateObject(3593, 1294.02478, -132.60817, 1001.68384, 0.00000, 0.00000, -97.97998);
- CreateObject(3502, 1300.45679, -128.51047, 1001.58936, 0.00000, 0.00000, 0.00000);
- CreateObject(3502, 1300.58948, -119.42725, 1001.58936, 0.00000, 0.00000, 0.00000);
- CreateObject(3593, 1303.68872, -113.47769, 1000.45740, 0.00000, 0.00000, 21.66000);
- CreateObject(3593, 1303.68872, -113.47769, 1001.57556, 0.00000, 0.00000, 2.16000);
- CreateObject(3578, 1295.38440, -117.66510, 1000.70654, 0.00000, 0.00000, 0.00000);
- CreateObject(3578, 1295.38757, -117.64536, 1000.70654, 0.00000, 0.00000, 0.00000);
- CreateObject(3578, 1286.23608, -120.31864, 1000.70654, 0.00000, 0.00000, 32.58000);
- CreateObject(3594, 1264.84070, -123.38073, 1000.50891, 0.00000, 0.00000, 0.00000);
- CreateObject(7317, 1261.09106, -131.82332, 1002.19299, 0.00000, 0.00000, 0.00000);
- CreateObject(3594, 1264.84070, -123.38073, 1000.50891, 0.00000, 0.00000, 0.00000);
- CreateObject(3594, 1276.80518, -116.70378, 1000.50891, 0.00000, 0.00000, -45.96000);
- CreateObject(3630, 1310.06494, -120.48964, 1001.29999, 0.00000, 0.00000, 0.00000);
- CreateObject(3578, 1319.46143, -116.98447, 1000.69226, 0.00000, 0.00000, 30.30000);
- CreateObject(3593, 1313.43665, -116.27687, 1001.25635, 22.02000, -15.36000, -179.70003);
- CreateObject(3593, 1311.08716, -115.97784, 1000.45740, 0.00000, 0.00000, 50.28001);
- CreateObject(3502, 1288.31738, -159.61072, 1001.91431, 0.00000, 0.00000, -133.32001);
- CreateObject(3502, 1278.93274, -151.14278, 1001.60565, 0.00000, 0.00000, -313.79993);
- CreateObject(3796, 1274.52515, -164.49042, 1006.88708, 0.00000, 0.00000, 0.00000);
- CreateObject(3796, 1273.34192, -160.01532, 999.86035, 0.00000, 0.00000, 0.00000);
- CreateObject(3578, 1267.06152, -156.98296, 1000.14410, 0.00000, 0.00000, -19.98000);
- CreateObject(3593, 1268.00916, -153.33194, 1000.25183, -12.78000, -4.86000, 0.00000);
- CreateObject(3502, 1279.51721, -160.10762, 1001.91431, 0.00000, 0.00000, -219.77998);
- CreateObject(3502, 1287.35913, -150.94603, 1001.91431, 0.00000, 0.00000, -39.05997);
- /////SA-MP logo////
- CreateDynamicObject(18750, 1118.13867, -2034.22327, 93.08495, 90.00000, 0.00000, 86.88003);
- ///////////////////LV-NRG race///////////////////////////
- CreateDynamicObject(987, 1798.06921, 863.33264, 9.16563, 0.00000, 0.00000, 89.09998);
- CreateDynamicObject(987, 1798.24731, 875.25696, 8.88965, 0.00000, 0.00000, 89.09998);
- CreateDynamicObject(987, 1798.44055, 887.28943, 8.48852, 0.00000, 0.00000, 89.09998);
- CreateDynamicObject(987, 1798.64807, 899.24225, 7.91664, 0.00000, 0.00000, 89.09998);
- CreateDynamicObject(987, 1798.90991, 911.18964, 7.65211, 0.00000, 0.00000, 89.09998);
- CreateDynamicObject(987, 1817.18555, 863.29279, 8.96083, 0.00000, 0.00000, 89.87997);
- CreateDynamicObject(987, 1817.18176, 875.24738, 8.96083, 0.00000, 0.00000, 89.87997);
- CreateDynamicObject(987, 1817.17993, 887.24286, 8.30122, 0.00000, 0.00000, 89.87997);
- CreateDynamicObject(987, 1817.17993, 899.14581, 7.80122, 0.00000, 0.00000, 89.87997);
- CreateDynamicObject(987, 1817.19824, 911.11707, 7.80122, 0.00000, 0.00000, 89.87997);
- CreateDynamicObject(987, 1816.94727, 863.43048, 8.96083, 0.00000, 0.00000, 179.69992);
- CreateDynamicObject(987, 1810.08923, 863.43958, 8.96083, 0.00000, 0.00000, 179.69992);
- CreateDynamicObject(987, 1891.85547, 1659.10803, 23.24935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(987, 1797.11462, 1554.65747, 5.73176, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(987, 1809.06018, 1554.71802, 5.73176, 0.00000, 0.00000, 0.00000);
- ///////////////////////CS 1.6 map////////////////////////
- cswall = CreateDynamicObject(19377, -22.87177, 1474.05334, 16.48265, 0.00000, 0.00000, 78.59998);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -13.59588, 1473.48206, 16.48265, 0.00000, 0.00000, 93.65995);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -4.03344, 1473.40698, 16.48265, 0.00000, 0.00000, 85.13999);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 5.40783, 1472.60559, 16.48265, 0.00000, 0.00000, 85.13999);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 14.89382, 1472.86853, 16.48265, 0.00000, 0.00000, 97.67999);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 24.19346, 1474.76599, 16.48265, 0.00000, 0.00000, 105.23997);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 33.31076, 1477.30652, 16.48265, 0.00000, 0.00000, 105.23997);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 42.09472, 1480.85925, 16.48265, 0.00000, 0.00000, 118.91996);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 50.37635, 1485.45483, 16.48265, 0.00000, 0.00000, 118.91996);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 57.95219, 1491.03101, 16.48265, 0.00000, 0.00000, 133.67990);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 64.68365, 1497.57227, 16.48265, 0.00000, 0.00000, 133.67990);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 68.58327, 1505.57312, 16.48265, 0.00000, 0.00000, 173.87996);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 69.50848, 1514.91321, 16.48265, 0.00000, 0.00000, 174.77992);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 69.83759, 1524.26855, 16.48265, 0.00000, 0.00000, 180.95981);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 69.37269, 1533.67932, 16.48265, 0.00000, 0.00000, 184.73976);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 68.11406, 1543.09302, 16.48265, 0.00000, 0.00000, 190.01973);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 65.97708, 1552.31787, 16.48265, 0.00000, 0.00000, 195.89969);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 61.69721, 1560.65442, 16.48265, 0.00000, 0.00000, 217.79970);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 55.48012, 1567.81165, 16.48265, 0.00000, 0.00000, 223.67960);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 49.13660, 1574.45398, 16.48265, 0.00000, 0.00000, 223.67960);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -32.22710, 1475.97498, 16.48265, 0.00000, 0.00000, 78.59998);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -38.25855, 1479.48926, 16.48265, 0.00000, 0.00000, 49.61996);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -45.40754, 1485.65637, 16.48265, 0.00000, 0.00000, 49.61996);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -52.67482, 1491.88330, 16.48265, 0.00000, 0.00000, 49.61996);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -59.58573, 1498.40015, 16.48265, 0.00000, 0.00000, 44.21997);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -66.23437, 1505.25305, 16.48265, 0.00000, 0.00000, 44.21997);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -70.40993, 1513.45337, 16.48265, 0.00000, 0.00000, 9.23997);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -71.88108, 1522.83557, 16.48927, 0.00000, 0.00000, 9.23997);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -68.23642, 1528.82019, 16.48927, 0.00000, 0.00000, -54.72004);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -60.39619, 1534.35095, 16.48927, 0.00000, 0.00000, -54.72004);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -52.61170, 1539.90198, 16.48927, 0.00000, 0.00000, -54.72004);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -68.23642, 1528.82019, 16.48927, 0.00000, 0.00000, -54.72004);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -44.80445, 1545.40454, 16.48927, 0.00000, 0.00000, -54.72004);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -38.54984, 1552.30225, 16.48927, 0.00000, 0.00000, -29.82002);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -33.79739, 1560.57373, 16.48927, 0.00000, 0.00000, -29.82002);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -29.00567, 1568.78381, 16.48927, 0.00000, 0.00000, -29.82002);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -24.01975, 1576.88806, 16.48927, 0.00000, 0.00000, -33.66003);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -18.69489, 1584.81140, 16.48927, 0.00000, 0.00000, -33.66003);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -11.27140, 1588.01440, 22.50716, 0.00000, 0.00000, -97.44002);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -18.69489, 1584.81140, 22.50179, 0.00000, 0.00000, -33.66003);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, -1.78983, 1586.76440, 22.50716, 0.00000, 0.00000, -97.44002);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 7.75706, 1585.50024, 22.50716, 0.00000, 0.00000, -97.44002);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 17.02947, 1583.46838, 22.50716, 0.00000, 0.00000, -107.82000);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 26.17471, 1580.52478, 22.50716, 0.00000, 0.00000, -107.82000);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 35.43746, 1578.09558, 22.50716, 0.00000, 0.00000, -101.52000);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 44.83092, 1577.84363, 22.50716, 0.00000, 0.00000, -81.59999);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- cswall = CreateDynamicObject(19377, 49.13660, 1574.45398, 22.49756, 0.00000, 0.00000, 223.67960);
- SetDynamicObjectMaterial(cswall, 0, 18265, "w_town3cs_t", "ws_redbrickold");
- //other cs objects
- CreateDynamicObject(3364, -31.00850, 1524.92676, 11.90070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3590, 34.38040, 1486.54724, 14.37506, 0.00000, 0.00000, 9.30000);
- CreateDynamicObject(3590, 22.14113, 1483.17920, 14.37506, 0.00000, 0.00000, 23.82000);
- CreateDynamicObject(3598, -5.25416, 1533.07813, 14.29298, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3598, -20.46461, 1555.45398, 14.29298, 0.00000, 0.00000, -97.62003);
- CreateDynamicObject(3598, 0.97160, 1573.37524, 14.29298, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3639, -12020.21289, 6020.91113, 602.15045, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3639, -8.19246, 1505.84302, 15.81714, 0.00000, 0.00000, 108.59999);
- CreateDynamicObject(3639, 35.50253, 1561.59509, 15.81714, 0.00000, 0.00000, 339.29990);
- CreateDynamicObject(3641, 21.26915, 1511.49255, 14.26571, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3641, 21.26095, 1529.05066, 14.26571, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3257, -50.97514, 1516.43958, 11.74858, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3722, -31.85994, 1495.32117, 14.21210, 0.00000, 0.00000, -140.45999);
- CreateDynamicObject(12943, -2.50142, 1486.38379, 11.73779, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11011, 50.10165, 1521.81909, 15.74077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16294, 17.25624, 1717.29163, 21.61719, 356.85840, 0.00000, 3.14159);
- CreateDynamicObject(16294, -0.76885, 1552.83362, 11.67785, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3277, -0.60714, 1552.51685, 12.22981, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3267, -0.80436, 1552.90527, 12.25576, 0.00000, 0.00000, 195.83997);
- CreateDynamicObject(3632, 5.10892, 1489.99951, 12.20393, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3632, 5.11929, 1489.35449, 12.20393, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3632, 5.08666, 1488.64368, 12.20393, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2567, 2.14968, 1483.67493, 13.49860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2567, -3.01430, 1483.65320, 13.49860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1348, -5.06173, 1489.56909, 12.44419, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1348, -3.30216, 1489.51270, 12.44419, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1348, -1.54259, 1489.45630, 12.44419, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1348, 0.20605, 1489.46216, 12.44419, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1689, 15.90164, 1520.92102, 17.48037, 0.00000, 0.00000, 88.14001);
- CreateDynamicObject(1225, 7.91132, 1502.56458, 12.10354, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1225, 27.57939, 1486.43176, 12.10354, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1225, -1.16787, 1554.21387, 13.06627, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(918, 42.64880, 1560.43713, 17.77438, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(918, -29.11509, 1491.01379, 18.07442, 0.00000, 0.00000, 0.00000);
- ///////////////////////M4 arena/////////////
- CreateDynamicObject(3268, 304.36697, 1967.70288, 16.63280, 0.00000, 0.00000, 268.85983);
- CreateDynamicObject(3268, 304.82034, 1987.58765, 16.63280, 0.00000, 0.00000, 449.03989);
- CreateDynamicObject(2634, 291.76950, 1997.96008, 18.09784, 0.00000, 0.00000, 178.79985);
- CreateDynamicObject(2634, 318.14005, 1997.32324, 18.09784, 0.00000, 0.00000, 178.79985);
- CreateDynamicObject(2634, 317.51553, 1957.51062, 18.06679, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2634, 291.13889, 1958.06091, 18.06679, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2634, 289.62524, 1974.79590, 18.06679, 0.00000, 0.00000, -92.09997);
- CreateDynamicObject(2634, 319.58795, 1980.46228, 17.74021, 0.00000, 0.00000, 90.29999);
- CreateDynamicObject(3593, 296.78088, 1979.15796, 17.09007, 0.00000, 0.00000, 87.78000);
- CreateDynamicObject(3593, 312.03506, 1978.92700, 17.09007, 0.00000, 0.00000, 87.78000);
- CreateDynamicObject(10009, 294.64960, 1987.45898, 17.18155, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(10009, 300.86084, 1991.12854, 17.18155, 0.00000, 0.00000, -87.66003);
- CreateDynamicObject(3279, 313.19931, 1992.91516, 4.25515, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3279, 313.21762, 1992.90710, 4.25515, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3279, 294.05008, 1962.58862, 4.25515, 0.00000, 0.00000, 264.84000);
- CreateDynamicObject(8572, 311.50635, 1964.81128, 17.48931, 0.00000, 0.00000, 89.75999);
- CreateDynamicObject(8572, 309.71265, 1968.47974, 17.48931, 0.00000, 0.00000, 269.45996);
- CreateDynamicObject(16096, 303.25793, 1961.42236, 18.47538, 0.00000, 0.00000, 268.74002);
- CreateDynamicObject(3593, 305.46683, 1979.21777, 17.09007, 0.00000, 0.00000, 87.78000);
- CreateDynamicObject(3593, 300.89709, 1979.17664, 17.09007, 0.00000, 0.00000, 87.78000);
- //////////////////////Admin cars//////////////////
- acars[0] = AddStaticVehicleEx(579,303.6000100,-1486.3000000,24.7000000,233.4980000,0,0,-1); //Huntley
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[0], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[0], "ADMIN");
- acars[1] = AddStaticVehicleEx(579,306.7999900,-1481.8000000,24.7000000,233.4980000,0,0,-1); //Huntley
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[1], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[1], "ADMIN");
- acars[2] = AddStaticVehicleEx(411,303.2000100,-1500.1000000,24.4000000,234.0000000,0,0,-1); //Infernus
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[2], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[2], "ADMIN");
- acars[3] = AddStaticVehicleEx(411,300.1000100,-1504.3000000,24.4000000,233.9980000,0,0,-1); //Infernus
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[3], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[3], "ADMIN");
- acars[4] = AddStaticVehicleEx(411,297.0000000,-1508.5000000,24.4000000,233.9980000,0,0,-1); //Infernus
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[4], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[4], "ADMIN");
- acars[5] = AddStaticVehicleEx(411,293.7999900,-1512.7000000,24.4000000,233.9980000,0,0,-1); //Infernus
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[5], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[5], "ADMIN");
- acars[6] = AddStaticVehicleEx(522,291.6000100,-1516.8000000,24.3000000,236.0000000,0,0,-1); //NRG-500
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[6], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[6], "ADMIN");
- acars[7] = AddStaticVehicleEx(522,290.6000100,-1518.5000000,24.3000000,235.9970000,0,0,-1); //NRG-500
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[7], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[7], "ADMIN");
- acars[8] = AddStaticVehicleEx(522,289.0000000,-1521.1000000,24.3000000,235.9970000,0,0,-1); //NRG-500
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[8], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[8], "ADMIN");
- acars[9] = AddStaticVehicleEx(522,287.6000100,-1522.9000000,24.3000000,235.9970000,0,0,-1); //NRG-500
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[9], 0.0, 0.0, 0.0);
- }
- SetVehicleNumberPlate(acars[9], "ADMIN");
- acars[10] = AddStaticVehicleEx(431,307.3999900,-1513.6000000,24.8000000,145.2500000,0,0,-1); //Bus
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[10], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[10], "ADMIN");
- acars[11] = AddStaticVehicleEx(409,298.3999900,-1526.7000000,24.5000000,145.7500000,0,0,-1); //Stretch
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[11], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[11], "ADMIN");
- acars[12] = AddStaticVehicleEx(415,278.8999900,-1535.9000000,24.4000000,236.0000000,0,0,-1); //Cheetah
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[12], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[12], "ADMIN");
- acars[13] = AddStaticVehicleEx(415,281.7999900,-1531.5000000,24.4000000,235.9970000,0,0,-1); //Cheetah
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[13], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[13], "ADMIN");
- acars[14] = AddStaticVehicleEx(415,284.8999900,-1527.0000000,24.4000000,235.9970000,0,0,-1); //Cheetah
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[14], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[14], "ADMIN");
- acars[15] = AddStaticVehicleEx(567,421.5503000,2438.5449000,16.3375000,0.0000000,0,0,15); //Savanna
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[15], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[15], "ADMIN");
- acars[16] = AddStaticVehicleEx(567,416.5843000,2438.8320000,16.3375000,0.0000000,0,0,15); //Savanna
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[16], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[16], "ADMIN");
- acars[17] = AddStaticVehicleEx(567,412.4758000,2438.9526000,16.3375000,0.0000000,0,0,15); //Savanna
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[17], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[17], "ADMIN");
- acars[18] = AddStaticVehicleEx(567,408.7251000,2438.8538000,16.3375000,0.0000000,0,0,15); //Savanna
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[18], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[18], "ADMIN");
- acars[19] = AddStaticVehicleEx(432,386.5417000,2443.5266000,16.4569000,0.0000000,0,0,15); //Rhino
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[19], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[19], "ADMIN");
- acars[20] = AddStaticVehicleEx(432,386.5483000,2456.6560000,16.4569000,0.0000000,0,0,15); //Rhino
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[20], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[20], "ADMIN");
- acars[21] = AddStaticVehicleEx(560,399.4259000,2440.0142000,16.0860000,-27.3600000,0,0,15); //Sultan
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[21], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[21], "ADMIN");
- acars[22] = AddStaticVehicleEx(560,395.4798000,2439.5386000,16.0860000,-27.3600000,0,0,15); //Sultan
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[22], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[22], "ADMIN");
- acars[23] = AddStaticVehicleEx(560,393.8833000,2443.0811000,16.0860000,-27.3600000,0,0,15); //Sultan
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[23], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[23], "ADMIN");
- acars[24] = CreateVehicle(559, 421.5461, 2472.4587, 16.0767, 90.0000, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[24], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[24], "ADMIN");
- acars[25] = CreateVehicle(559, 421.6373, 2468.4341, 16.0767, 90.0000, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[25], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[25], "ADMIN");
- acars[26] = CreateVehicle(559, 421.8161, 2464.7593, 16.0767, 90.0000, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[26], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[26], "ADMIN");
- acars[27] = CreateVehicle(559, 421.9554, 2461.2463, 16.0767, 90.0000, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[27], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[27], "ADMIN");
- acars[28] = CreateVehicle(559, 422.0742, 2457.4290, 16.0767, 90.0000, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[28], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[28], "ADMIN");
- acars[29] = CreateVehicle(565, 422.0060, 2448.7200, 16.0180, 31.9200, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[29], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[29], "ADMIN");
- acars[30] = CreateVehicle(565, 421.8614, 2443.8186, 16.0180, 31.9200, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[30], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[30], "ADMIN");
- acars[31] = CreateVehicle(565, 410.2276, 2456.4688, 16.0180, 31.9200, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[31], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[31], "ADMIN");
- acars[32] = CreateVehicle(565, 407.0722, 2456.5898, 16.0180, 31.9200, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[32], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[32], "ADMIN");
- acars[33] = CreateVehicle(565, 413.2060, 2456.6216, 16.0180, 31.9200, -1, -1, 100);
- {
- vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[ADMIN]", 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
- Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , acars[33], 0.0, 0.0, 0.0);
- }SetVehicleNumberPlate(acars[33], "ADMIN");
- ////////////////////////////////////////////////////////////////////////////////////////////////////////
- nrgrace[0] = CreateVehicle(522, 1810.9987, 871.1696, 9.9111, 0.0000, -1, -1, 100);
- nrgrace[1] = CreateVehicle(522, 1809.2661, 870.9945, 9.9111, 0.0000, -1, -1, 100);
- nrgrace[2] = CreateVehicle(522, 1807.6154, 870.9039, 9.9111, 0.0000, -1, -1, 100);
- nrgrace[3] = CreateVehicle(522, 1805.4987, 870.7879, 9.9111, 0.0000, -1, -1, 100);
- nrgrace[4] = CreateVehicle(522, 1803.8337, 870.7100, 9.9111, 0.0000, -1, -1, 100);
- nrgrace[5] = CreateVehicle(522, 1802.2521, 870.6360, 9.9111, 0.0000, -1, -1, 100);
- /////Running//
- UsePlayerPedAnims();
- /////////TIMERS//////////////
- randommessages = SetTimer("RandomMessagesS",500000,true);
- ////SETTINGS///
- RespawnCar = 0;
- //////////Labels and pickups//////
- Create3DTextLabel(""LBLUE"Inuition Fun Server\nVersion 'EASY DEVELOPING'\nFind place that is the best for you\nAnd start fun!", 0x9EC73DAA, -22.5647,-2504.7524,36.6484, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[DEAGLE ARENA]\nGood luck!", 0x9EC73DAA, -17.9016,-2493.2449,36.6484, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[Counter-Strike ARENA]\nGood luck!", 0x9EC73DAA, -15.2836,-2497.4714,36.6484, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[M4 ARENA]\nGood luck!", 0x9EC73DAA, -12.5903,-2501.7463,36.6555, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[NRG-500 RACE]\nGood luck!", 0x9EC73DAA, -10.0076,-2505.8801,36.6555, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[LEAVE]", 0x9EC73DAA, 1322.4802,-170.0587,1002.4976, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[LEAVE]", 0x9EC73DAA, 306.0833,1995.9950,17.6406, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[LEAVE]", 0x9EC73DAA, 290.2501,1967.0287,17.6406, 20.0, 0, 0);
- Create3DTextLabel(""YELLOW"[LEAVE]", 0x9EC73DAA, -8.2769,1482.9368,12.7500, 20.0, 0, 0);
- Create3DTextLabel(""LBLUE"[BLUE TIM]", 0x9EC73DAA, 306.3832,1985.6903,17.6406, 20.0, 0, 0);
- Create3DTextLabel(""RED"[RED TIM]", 0x9EC73DAA, 303.7382,1970.9534,17.6406, 20.0, 0, 0);
- deaglepickup = CreatePickup(1254, 2, -17.9016,-2493.2449,36.6484, -1); //deagle arena enter
- cspickup = CreatePickup(1254, 2, -15.2836,-2497.4714,36.6484, -1); //cs mapa arena enter
- m4pickup = CreatePickup(1254, 2, -12.5903,-2501.7463,36.6555, -1); //m4 arena enter
- nrg = CreatePickup(1314, 2, -10.0076,-2505.8801,36.6555, -1); //grenade arena enter
- dglizlpickup = CreatePickup(1318, 2, 1322.4802,-170.0587,1002.4976, -1); //leave from deagle arene
- m41izlpickup = CreatePickup(1318, 2, 306.0833,1995.9950,17.6406, -1); //leave from m4 arene plavi tim
- m42izlpickup = CreatePickup(1318, 2, 290.2501,1967.0287,17.6406, -1); //leave from m4 arene crveni tim
- csizlpickup = CreatePickup(1318, 2, -8.2769,1482.9368,12.7500, -1); //leave from cs-a
- healthpickup = CreatePickup(1240, 3, 1295.2510,-176.8279,1002.4977, -1);
- healthpickup = CreatePickup(1240, 3, 303.3230,1964.4343,17.9605, -1);
- healthpickup = CreatePickup(1240, 3, 313.2904,1993.3496,21.3333, -1);
- healthpickup = CreatePickup(1240, 3, 3.2399,1489.8374,12.7500, -1);
- SetGameModeText("Inuition");
- ShowPlayerMarkers(1);
- ShowNameTags(1);
- AllowAdminTeleport(1);
- AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(19,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(23,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(29,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(48,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(102,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(108,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(115,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(116,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(117,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(124,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(126,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(122,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(165,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(167,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(174,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(270,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(287,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(294,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(293,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(0,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(1,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(6,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(46,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(59,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(93,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(101,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(120,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(123,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(127,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(137,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(141,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(149,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(188,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(189,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(240,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(290,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(296,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(299,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(292,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- ////////STOCKOVI OD VRATA(BALKAN JOKE) :)))/////
- stock DeleteObject(playerid)
- {
- //SPAWN//
- RemoveBuildingForPlayer(playerid, 17070, -23.3750, -2507.1250, 35.6719, 0.25);
- ///M4 arena///
- RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1955.7656, 16.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1955.7656, 16.6328, 0.25);
- ////Admin base 2///
- RemoveBuildingForPlayer(playerid, 16773, 397.4766, 2476.6328, 19.5156, 0.25);
- RemoveBuildingForPlayer(playerid, 16775, 412.1172, 2476.6328, 19.5156, 0.25);
- /////Something else//
- return 1;
- }
- ///////////////////////////////
- stock IgraciPath(playerid)
- {
- new string[128], sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,sendername, sizeof(sendername));
- format(string,sizeof(string),IGRACI,sendername);
- return string;
- }
- ///////////////////////////////
- stock GetPlayerID(const Name[])
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(i, pName, sizeof(pName));
- if(strcmp(Name, pName, true)==0)
- {
- return i;
- }
- }
- }
- return -1;
- }
- //////FORWARDI//////////////////
- forward RandomMessagesS();
- public RandomMessagesS()
- {
- new poruke = random(sizeof(RandomMessages));
- SendClientMessageToAll(-1, RandomMessages[poruke]);
- return true;
- }
- /////////////////////////////////
- forward ClearChat(playerid, lines);
- public ClearChat(playerid, lines)
- {
- for(new i = 0; i < lines; i++)
- {
- SCM(playerid, -1, " ");
- }
- return 1;
- }
- ///////////////////////////////////
- forward Respawn();
- public Respawn()
- {
- new bool:unwanted[MAX_CARS];
- for(new player=0; player<MAX_PLAYERS; player++)
- {
- if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
- }
- for(new car = 1; car < MAX_CARS; car++)
- {
- if(!unwanted[car]) SetVehicleToRespawn(car);
- }
- RespawnCar = 0; SendClientMessageToAll(-1, ""LBLUE"<<< "GREY"Cars respawned "LBLUE">>>");
- return 1;
- }
- /////////////Checkpointi////////////
- public OnPlayerEnterCheckpoint(playerid)
- {
- GivePlayerMoney(playerid, 1500);
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, -1, ""YELLOW"[WARNING] | "WHITE"You finished the race!");
- return 1;
- }
- ///////////INI OCITAVANJA//////////
- forward LoadUser_data(playerid,name[],value[]);
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Novac",PlayerInfo[playerid][pNovac]);
- INI_Int("Ubistava",PlayerInfo[playerid][pUbistava]);
- INI_Int("Smrti",PlayerInfo[playerid][pSmrti]);
- INI_Int("Score",PlayerInfo[playerid][pScore]);
- return 1;
- }
- /////////////////////////////////////
- stock SavePlayer(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new INI:File = INI_Open(IgraciPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Novac",PlayerInfo[playerid][pNovac]);
- INI_WriteInt(File,"Ubistava",PlayerInfo[playerid][pUbistava]);
- INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
- INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]);
- INI_Close(File);
- }
- return 1;
- }
- /////////Dialozi//////////////////////
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == TEAMS1)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, 317.5467,1979.3348,17.6406);
- GivePlayerWeapon(playerid,31,1000);
- SetPlayerArmour(playerid, 100);
- SetPlayerColor(playerid, 0x00CCFF);
- SetPlayerHealth(playerid,100);
- SCM(playerid,-1,""YELLOW"[ITN] "WHITE"You joined blue team!");
- SCM(playerid,-1,""RED"[WARNING] "WHITE"You are in M4 arena and map is small.SPAWN-KILL is restricted!");
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 317.5983,1958.3188,17.6406);
- GivePlayerWeapon(playerid,31,1000);
- SetPlayerArmour(playerid, 100);
- SetPlayerColor(playerid, 0xFF0000FF);
- SetPlayerHealth(playerid,100);
- SCM(playerid,-1,""YELLOW"[ITN] "WHITE"You joined red team");
- SCM(playerid,-1,""RED"[WARNING] "WHITE"You are in M4 arena and map is small.SPAWN-KILL is restricted!");
- }
- }
- return 1;
- }
- if(dialogid == OBJECTS)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerAttachedObject( playerid, 0, 356, 1, 0.222186, -0.146085, 0.085346, 0.000000, 151.341934, 0.000000, 1.000000, 1.000000, 1.000000 ); // m4 - m4
- }
- if(listitem == 1)
- {
- SetPlayerAttachedObject( playerid, 3, 3461, 6, 0.069429, 0.032604, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // tikitorch01_lvs - baklja
- }
- if(listitem == 2)
- {
- SetPlayerAttachedObject( playerid, 4, 373, 1, 0.286601, -0.014752, -0.169651, 74.940216, 23.071197, 33.927280, 1.000000, 1.000000, 1.000000 ); // armour - pancir
- }
- if(listitem == 3)
- {
- SetPlayerAttachedObject( playerid, 2, 19086, 8, -0.049768, -0.014062, -0.108385, 87.458297, 263.478149, 184.123764, 0.622413, 1.041609, 1.012785 ); // ChainsawDildo1 - lolatdick
- }
- if(listitem == 4)
- {
- SetPlayerAttachedObject( playerid, 5, 1274, 1, 0.806575, 0.052928, 0.013146, 0.000000, 87.540878, 0.000000, 1.000000, 1.000000, 1.000000 ); // bigdollar - dolar
- }
- if(listitem == 5)
- {
- SetPlayerSpecialAction(playerid, 21);
- SCM(playerid,-1,""RED"[ITN-HELP] "WHITE"Da ugasite cigaru pritisnite ENTER");
- }
- if(listitem == 6)
- {
- SetPlayerAttachedObject( playerid, 6, 3524, 6, 0.100679, -0.061841, 2.545831, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // skullpillar01_lvs - vatrenikostur
- }
- if(listitem == 7)
- {
- SetPlayerAttachedObject( playerid, 7, 954, 1, 0.954922, 0.030687, 0.000000, 0.000000, 268.403228, 0.000000, 1.000000, 1.000000, 1.000000 ); // cj_horse_Shoe - potkovica
- }
- if(listitem == 8)
- {
- SetPlayerAttachedObject( playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
- }
- if(listitem == 9)
- {
- SetPlayerAttachedObject( playerid, 8, 19078, 1, 0.311434, -0.063826, -0.161611, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1 - papagaj
- }
- if(listitem == 10)
- {
- SetPlayerAttachedObject( playerid, 9, 339, 1, -0.248040, 0.000000, 0.178634, 88.912078, 172.776626, 5.334595, 1.000000, 1.000000, 1.000000 ); // katana - sablja
- }
- if(listitem == 11)
- {
- SetPlayerAttachedObject( playerid, 1, 341, 1, -0.340437, -0.203787, -0.068695, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // chnsaw - testera
- }
- if(listitem == 12)
- {
- SetPlayerAttachedObject( playerid, 2, 674, 1, -1.193789, 0.051014, 0.099190, 0.000000, 90.430030, 0.000000, 1.000000, 1.000000, 1.000000 ); // sm_des_josh_lrg1 - drvo
- }
- if(listitem == 13)
- {
- SetPlayerAttachedObject( playerid, 3, 1211, 1, 0.916536, 0.012704, -0.003792, 0.000000, 89.479736, 0.000000, 1.000000, 1.000000, 1.000000 ); // fire_hydrant - vodokotlic
- }
- if(listitem == 14)
- {
- SetPlayerAttachedObject( playerid, 6, 1371, 1, 0.177012, 0.000000, -0.008047, 0.000000, 89.795104, 182.353408, 1.000000, 1.000000, 1.000000 ); // CJ_HIPPO_BIN - nilski
- }
- if(listitem == 15)
- {
- SetPlayerSpecialAction(playerid, 68);
- SCM(playerid,-1,""RED"[ITN-HELP] "WHITE"To turn back your dick in your underwear,press ENTER!");
- }
- }
- return 1;
- }
- if(dialogid == MUSIC)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/my7zz83knx/Dr._Dre_feat._Snoop_Dogg_-_Still_Dre_Lyrics_.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 1)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k007.kiwi6.com/hotlink/kao5q8tu4g/OneRepublic_-_Counting_Stars_1_.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 2)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k007.kiwi6.com/hotlink/v1k7rj2zj3/Cars_Life_is_a_Highway.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 3)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k007.kiwi6.com/hotlink/ezt0azlaqp/Bob_Marley_-_A_lalala_long.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 4)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k007.kiwi6.com/hotlink/5bfzrdk6me/Avicii_-_Wake_Me_Up_Official_Video_.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 5)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/zt792nqjre/Ellie_Goulding_-_Burn.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 6)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k007.kiwi6.com/hotlink/s3y8478prg/Pitbull_-_Timber_ft._Ke_ha.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 7)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/hp642d9tgo/Jason_Derulo_-_Wiggle_feat._Snoop_Dogg_Official_HD_Music_Video_.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 8)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/dymed0yjzl/Eminem_-_Not_Afraid.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 9)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/ngn0mg23uo/Pitbull_-_Rain_Over_Me_ft._Marc_Anthony.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 10)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/bslqpll9u8/Taylor_Swift_-_Shake_It_Off.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- if(listitem == 11)
- {
- for( new u; u < MAX_PLAYERS; u++ )
- {
- PlayAudioStreamForPlayer( u, "http://k003.kiwi6.com/hotlink/17pfsa7fes/Wiz_Khalifa_-_Black_And_Yellow_Official_Music_Video_.mp3" );
- SendClientMessageToAll(-1, ""YELLOW"[WARNING] | "WHITE"Admin has turned on music.Type /stopmusic to stop");
- }
- }
- }
- return 1;
- }
- if(dialogid == WHEELS)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1025);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 1)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1073);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 2)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1074);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 3)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1075);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 4)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1076);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 5)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1077);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 6)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1078);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 7)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1079);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 8)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 9)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1081);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 10)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1082);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 11)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1083);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 12)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1084);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 13)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1085);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 14)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1096);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 15)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1097);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- if(listitem == 16)
- {
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1098);
- GameTextForPlayer(playerid, "~g~WHEELS changed", 3000, 1);
- }
- }
- return 1;
- }
- if(dialogid == PAINTJOB)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 0);
- GameTextForPlayer(playerid, "~g~Paintjob changed", 2000, 6);
- }
- if(listitem == 1)
- {
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 1);
- GameTextForPlayer(playerid, "~g~Paintjob changed", 2000, 6);
- }
- if(listitem == 2)
- {
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 2);
- GameTextForPlayer(playerid, "~g~Paintjob changed", 2000, 6);
- }
- if(listitem == 3)
- {
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 3);
- GameTextForPlayer(playerid, "~g~Paintjob changed", 2000, 6);
- }
- }
- return 1;
- }
- if(dialogid == VCOLOR)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), 1, 1);
- GameTextForPlayer(playerid, "~g~Boja changed", 2000, 6);
- }
- if(listitem == 1)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), 2, 7);
- GameTextForPlayer(playerid, "~g~Boja changed", 2000, 6);
- }
- if(listitem == 2)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), 6, 6);
- GameTextForPlayer(playerid, "~g~Boja changed", 2000, 6);
- }
- if(listitem == 3)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), 3, 3);
- GameTextForPlayer(playerid, "~g~Boja changed", 2000, 6);
- }
- if(listitem == 4)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), 16, 16);
- GameTextForPlayer(playerid, "~g~Boja changed", 2000, 6);
- }
- if(listitem == 5)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), 0, 0);
- GameTextForPlayer(playerid, "~g~Boja changed", 2000, 6);
- }
- }
- return 1;
- }
- if(dialogid == FIGHTSTYLE)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
- GameTextForPlayer(playerid, "~g~Kneehad", 2000, 6);
- }
- if(listitem == 1)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
- GameTextForPlayer(playerid, "~g~Kungfu", 2000, 6);
- }
- if(listitem == 2)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
- GameTextForPlayer(playerid, "~g~Boxing", 2000, 6);
- }
- if(listitem == 3)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
- GameTextForPlayer(playerid, "~g~Grabkick", 2000, 6);
- }
- if(listitem == 4)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
- GameTextForPlayer(playerid, "~g~Elbow", 2000, 6);
- }
- if(listitem == 5)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
- GameTextForPlayer(playerid, "~g~Normal", 2000, 6);
- }
- }
- return 1;
- }
- if(dialogid == TEAMS)
- {
- if(!response)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, -47.8881,1513.6719,12.7500);
- GivePlayerWeapon(playerid,31,500);
- GivePlayerWeapon(playerid,16,1);
- GivePlayerWeapon(playerid,24,500);
- GivePlayerWeapon(playerid,3,1);
- SetPlayerArmour(playerid, 100);
- SetPlayerSkin(playerid, 285);
- SetPlayerHealth(playerid,100);
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/hzfahqb4e7/counter_strike_jingle_-_cs_radio-go_go_go.mp3");
- SetPlayerColor(playerid, 0x00CCFF);
- SCM(playerid,-1,""YELLOW"[ITN] "WHITE"You joined with Counter-Terrorists!\nYour task is to prevend terrorists to shoot at gas!");
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 58.0092,1528.5308,13.9239);
- GivePlayerWeapon(playerid,5,1);
- GivePlayerWeapon(playerid,16,1);
- GivePlayerWeapon(playerid,22,500);
- GivePlayerWeapon(playerid,30,500);
- SetPlayerArmour(playerid, 100);
- SetPlayerSkin(playerid, 73);
- SetPlayerHealth(playerid,100);
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/hzfahqb4e7/counter_strike_jingle_-_cs_radio-go_go_go.mp3");
- SetPlayerColor(playerid, 0xFF0000FF);
- SCM(playerid,-1,""YELLOW"[ITN] "WHITE"You joined with Terrorists!\nYour task is to shoot at gas before CS stop you!");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement