Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////// UNDERGROUND RACE
- //----------------------------------------------------------------------------
- // GotoUR
- if(strcmp(cmd, "/gotour2", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1412.0709,-1317.6627,9.4911);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1412.0709,-1317.6627,9.4911);
- }
- SendClientMessage(playerid, COLOR_GRAD1, " Teleportovani ste !");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVirWorld] = 0;
- //AdminDuty[playerid] = 1;
- //SetPlayerArmour(playerid, 999);
- //SetPlayerHealth(playerid, 999);
- //SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
- //GetPlayerName(playerid, sendername, sizeof(sendername));
- //format(string, sizeof(string), "[ADMIN] [ID:%d]%s je on duty", playerid, sendername);
- //ABroadCast(COLOR_YELLOW,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gotour1", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2587.4229,-2126.4773,0.4983);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 2587.4229,-2126.4773,0.4983);
- }
- SendClientMessage(playerid, COLOR_GRAD1, " Teleportovani ste !");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVirWorld] = 0;
- //AdminDuty[playerid] = 1;
- //SetPlayerArmour(playerid, 999);
- //SetPlayerHealth(playerid, 999);
- //SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
- //GetPlayerName(playerid, sendername, sizeof(sendername));
- //format(string, sizeof(string), "[ADMIN] [ID:%d]%s je on duty", playerid, sendername);
- //ABroadCast(COLOR_YELLOW,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu !");
- }
- }
- return 1;
- }
- if (strcmp("/uotvori", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- MoveDynamicObject(uracekapija,2581.8566894531, -2125.2780761719, -5.20096206665039, 10.0);
- SetTimer("GateClose18", 10000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"ADMIN | Otvorio si kapiju za underground race");
- }
- else { SendClientMessage(playerid, COLOR_GREY,"Nemas pristup ovoj komandi.");}
- }
- // Poziv na utrku brodovima
- if (strcmp(cmd, "/uutrka", true)==0)//Ovdje stavite koju komandu zelite za prozivanje
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /uutrka [ID/Ime]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- SetPlayerCheckpoint(giveplayerid, 2581.4954,-2113.2290,0.8533,10.0);// ovdje stavite kordinate prvog CP-a. ovo sto pise (8.0)To vaj je velicina CP-a.
- CP[giveplayerid] = 920;
- SendClientMessage(playerid, COLOR_BLUE, "Pozvao si igraca na utrku.");
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, "Pozvan si na UnderGround utrku od Admina/GameMastera.")
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani da koristite ovu komandu !");
- }
- }
- return 1;
- }
- // Brodovi
- // Auta za drag INFERNUS
- if (strcmp("/surace", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- ur1 = CreateVehicle(541, 2578.1867675781, -2180.0256347656, 0, 0, -1, -1, 1000);
- ur2 = CreateVehicle(541, 2584.365234375, -2140.0615234375, 0, 0, -1, -1, 1000);
- ur3 = CreateVehicle(541, 2578.1865234375, -2131.025390625, 0, 0, -1, -1, 1000);
- ur4 = CreateVehicle(541, 2584.365234375, -2131.0615234375, 0, 0, -1, -1, 1000);
- ur5 = CreateVehicle(541, 2578.1865234375, -2140.025390625, 0, 0, -1, -1, 1000);
- ur6 = CreateVehicle(541, 2584.365234375, -2148.0615234375, 0, 0, -1, -1, 1000);
- ur7 = CreateVehicle(541, 2578.1865234375, -2148.025390625, 0, 0, -1, -1, 1000);
- ur8 = CreateVehicle(541, 2584.365234375, -2180.0256347656, 0, 0, -1, -1, 1000);
- ur9 = CreateVehicle(541, 2578.1865234375, -2156.025390625, 0, 0, -1, -1, 1000);
- ur10 = CreateVehicle(541, 2584.365234375, -2156.025390625, 0, 0, -1, -1, 1000);
- ur11 = CreateVehicle(541, 2578.1865234375, -2164.025390625, 0, 0, -1, -1, 1000);
- ur12 = CreateVehicle(541, 2584.365234375, -2164.025390625, 0, 0, -1, -1, 1000);
- ur13 = CreateVehicle(541, 2578.1865234375, -2172.025390625, 0, 0, -1, -1, 1000);
- ur14 = CreateVehicle(541, 2584.365234375, -2172.025390625, 0, 0, -1, -1, 1000);
- SendClientMessage(playerid, COLOR_BLUE,"Napravio si vozila za UnderGround Race");
- }
- else { SendClientMessage(playerid, COLOR_GREY,"Nemas dozvolu za ovu komandu.");}
- }
- /////////////////////////////////////////// KRAJ UNDERGROUND
- // Ciscenjue ulice
- if(strcmp(cmd, "/cisti", true) == 0) //promjenite kako zelite da glasi komanda
- {
- if(PlayerInfo[playerid][pJob] == 21)//provjerava dali igrac ima posao gradjevinara
- {
- if(PlayerToPoint(15.0,playerid,2252.3909,32.0951,26.4844))//pozicija na kojoj koristi komandu za voziti bager
- {
- if(JobDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GROVE,"Cistite ulice Palomino Creeka.");
- SetPlayerCheckpoint(playerid, 2270.3042,38.9865,26.0608,3.0);//ovo je za check point
- CP[giveplayerid] = 400;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti ili niste kod radionice !");
- return 1;
- }
- }
- }
- return 1;
- }
- // ----------------------------------------------// Animacije //------------------------------------------
- if(strcmp(cmd,"/animlist",true)==0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "________________________________________________________________________________________________________________________");
- SendClientMessage(playerid,COLOR_GRAD5,"-ANIMACIJE:");
- SendClientMessage(playerid,COLOR_GRAD4,"/fall - /fallback - /injured - /akick - /push - /lowbodypush - /handsup - /bomb - /drunk - /getarrested - /laugh - /sup");
- SendClientMessage(playerid,COLOR_GRAD4,"/basket - /headbutt - /medic - /spray - /robman - /taichi - /lookout - /kiss - /cellin - /cellout - /crossarms - /lay");
- SendClientMessage(playerid,COLOR_GRAD3,"/deal - /crack - /smokeanim - /groundsit - /chat - /chat2 - /dance - /fucku - /strip - /hide - /vomit - /chairsit - /reload");
- SendClientMessage(playerid,COLOR_GRAD3,"/koface - /kostomach - /rollfall - /carjacked1 - /carjacked2 - /rcarjack1 - /rcarjack2 - /lcarjack1 - /lcarjack2 - /bat");
- SendClientMessage(playerid,COLOR_GRAD2,"/lifejump - /exhaust - /leftslap - /carlock - /hoodfrisked - /lightcig - /tapcig - /box - /lay2 - /chant - finger");
- SendClientMessage(playerid,COLOR_GRAD2,"/shouting - /knife - /cop - /elbow - /kneekick - /airkick - /gkick - /gpunch - /fstance - /lowthrow - /highthrow - /aim");
- SendClientMessage(playerid,COLOR_GRAD1,"/pee - /lean - /run");
- SendClientMessage(playerid, COLOR_YELLOW, "-------------------------------------------------------------------------------------------------------------------------");
- return true;
- }
- // carjacked
- if(strcmp(cmd, "/carjacked1", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
- return 1;
- }
- // carjacked
- if(strcmp(cmd, "/carjacked2", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_jackedRHS",4.0,0,1,1,1,0);
- return 1;
- }
- // CELLPHONE IN
- if(strcmp(cmd, "/cellin", true) == 0) {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- return 1;
- }
- // CELLPHONE OUT
- if(strcmp(cmd, "/cellout", true) == 0) {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- return 1;
- }
- // Drunk
- if(strcmp(cmd, "/drunk", true) == 0) {
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
- return 1;
- }
- // Place a Bomb
- if (strcmp("/bomb", cmdtext, true) == 0) {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0); // Place Bomb
- return 1;
- }
- // Police Arrest
- if (strcmp("/getarrested", cmdtext, true) == 0) {
- ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
- return 1;
- }
- // Laugh
- if (strcmp("/laugh", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
- return 1;
- }
- // Rob Lookout
- if (strcmp("/lookout", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
- return 1;
- }
- // Rob Threat
- if (strcmp("/robman", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); // Rob
- return 1;
- }
- // Arms crossed
- if (strcmp("/crossarms", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1); // Arms crossed
- return 1;
- }
- // Lay Down
- if (strcmp("/lay", cmdtext, true) == 0) {
- ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
- return 1;
- }
- // Take Cover
- if (strcmp("/hide", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); // Taking Cover
- return 1;
- }
- // Vomit
- if (strcmp("/vomit", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
- return 1;
- }
- // Wave
- if (strcmp("/wave", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
- return 1;
- }
- // Slap Ass
- if (strcmp("/slapass", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
- return 1;
- }
- // Dealer
- if (strcmp("/deal", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0); // Deal Drugs
- return 1;
- }
- // Crack Dieing
- if (strcmp("/crack", cmdtext, true) == 0) {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
- return 1;
- }
- // Smoking animations
- if(strcmp(cmd, "/smokeanim", true) == 0)
- {
- if (!strlen(cmdtext[7])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /smoke [1-4]");
- switch (cmdtext[7])
- {
- case '1': ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); // male
- case '2': ApplyAnimation(playerid,"SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0); //female
- case '3': ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0); // standing-fucked
- case '4': ApplyAnimation(playerid,"SMOKING","M_smk_out", 4.0, 1, 0, 0, 0, 0); // standing
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /smoke [1-4]");
- }
- return 1;
- }
- // Sit
- if (strcmp("/groundsit", cmdtext, true) == 0 || strcmp("/gro", cmdtext, true) == 0) {
- ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
- return 1;
- }
- // Idle Chat
- if(strcmp(cmd, "/chat", true) == 0) {
- ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,1);
- return 1;
- }
- // Idle Chat2
- if(strcmp(cmd, "/chat2", true) == 0) {
- ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.0,1,0,0,1,1);
- return 1;
- }
- // Fucku
- if(strcmp(cmd, "/fucku", true) == 0) {
- ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
- return 1;
- }
- // TaiChi
- if(strcmp(cmd, "/taichi", true) == 0) {
- ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
- return 1;
- }
- // ChairSit
- if(strcmp(cmd, "/chairsit", true) == 0) {
- ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
- return 1;
- }
- // Fall on the ground
- if(strcmp(cmd, "/fall", true) == 0) {
- ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
- return 1;
- }
- // Fall
- if(strcmp(cmd, "/fallback", true) == 0) {
- ApplyAnimation(playerid, "PED","FLOOR_hit_f", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- // kiss
- if(strcmp(cmd, "/kiss", true) == 0) {
- ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 1, 1, 1, 0);
- return 1;
- }
- // Injujred
- if(strcmp(cmd, "/injured", true) == 0) {
- ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- // Homie animations
- if(strcmp(cmd, "/sup", true) == 0)
- {
- if (!strlen(cmdtext[5])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /sup [1-3]");
- switch (cmdtext[5])
- {
- case '1': ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
- case '2': ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
- case '3': ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /sup [1-3]");
- }
- return 1;
- }
- // Rap animations
- if(strcmp(cmd, "/rap", true) == 0)
- {
- if (!strlen(cmdtext[5])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /rap [1-4]");
- switch (cmdtext[5])
- {
- case '1': ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,0,0,0,0);
- case '2': ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- case '3': ApplyAnimation(playerid,"GANGS","prtial_gngtlkD",4.0,1,0,0,0,0);
- case '4': ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,1,0,0,1,1);
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /rap [1-4]");
- }
- return 1;
- }
- // Violence animations
- if(strcmp(cmd, "/push", true) == 0) {
- ApplyAnimation(playerid,"GANGS","shake_cara",4.0,0,0,0,0,0);
- return 1;
- }
- if(strcmp(cmd, "/akick", true) == 0) {
- ApplyAnimation(playerid,"POLICE","Door_Kick",4.0,0,0,0,0,0);
- return 1;
- }
- if(strcmp(cmd, "/lowbodypush", true) == 0) {
- ApplyAnimation(playerid,"GANGS","shake_carSH",4.0,0,0,0,0,0);
- return 1;
- }
- // Spray
- if(strcmp(cmd, "/spray", true) == 0) {
- ApplyAnimation(playerid,"SPRAYCAN","spraycan_full",4.0,0,0,0,0,0);
- return 1;
- }
- // Headbutt
- if(strcmp(cmd, "/headbutt", true) == 0) {
- ApplyAnimation(playerid,"WAYFARER","WF_Fwd",4.0,0,0,0,0,0);
- return 1;
- }
- // Medic
- if(strcmp(cmd, "/medic", true) == 0) {
- ApplyAnimation(playerid,"MEDIC","CPR",4.0,0,0,0,0,0);
- return 1;
- }
- // KO Face
- if(strcmp(cmd, "/koface", true) == 0) {
- ApplyAnimation(playerid,"PED","KO_shot_face",4.0,0,1,1,1,0);
- return 1;
- }
- // KO Stomach
- if(strcmp(cmd, "/kostomach", true) == 0) {
- ApplyAnimation(playerid,"PED","KO_shot_stom",4.0,0,1,1,1,0);
- return 1;
- }
- // Jump for your life!
- if(strcmp(cmd, "/lifejump", true) == 0) {
- ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
- return 1;
- }
- // Exhausted
- if(strcmp(cmd, "/exhaust", true) == 0) {
- ApplyAnimation(playerid,"PED","IDLE_tired",3.0,1,0,0,0,0);
- return 1;
- }
- // Left big slap
- if(strcmp(cmd, "/leftslap", true) == 0) {
- ApplyAnimation(playerid,"PED","BIKE_elbowL",4.0,0,0,0,0,0);
- return 1;
- }
- // Big fall
- if(strcmp(cmd, "/rollfall", true) == 0) {
- ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
- return 1;
- }
- // Locked
- if(strcmp(cmd, "/carlock", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_doorlocked_LHS",4.0,0,0,0,0,0);
- return 1;
- }
- // carjack
- if(strcmp(cmd, "/rcarjack1", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_pulloutL_LHS",4.0,0,0,0,0,0);
- return 1;
- }
- // carjack
- if(strcmp(cmd, "/lcarjack1", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_pulloutL_RHS",4.0,0,0,0,0,0);
- return 1;
- }
- // carjack
- if(strcmp(cmd, "/rcarjack2", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_pullout_LHS",4.0,0,0,0,0,0);
- return 1;
- }
- // carjack
- if(strcmp(cmd, "/lcarjack2", true) == 0) {
- ApplyAnimation(playerid,"PED","CAR_pullout_RHS",4.0,0,0,0,0,0);
- return 1;
- }
- // Hood frisked
- if(strcmp(cmd, "/hoodfrisked", true) == 0) {
- ApplyAnimation(playerid,"POLICE","crm_drgbst_01",4.0,0,1,1,1,0);
- return 1;
- }
- // Lighting cigarette
- if(strcmp(cmd, "/lightcig", true) == 0) {
- ApplyAnimation(playerid,"SMOKING","M_smk_in",3.0,0,0,0,0,0);
- return 1;
- }
- // Tap cigarette
- if(strcmp(cmd, "/tapcig", true) == 0) {
- ApplyAnimation(playerid,"SMOKING","M_smk_tap",3.0,0,0,0,0,0);
- return 1;
- }
- // Bat stance
- if(strcmp(cmd, "/bat", true) == 0) {
- ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.0,1,1,1,1,0);
- return 1;
- }
- // Boxing
- if(strcmp(cmd, "/box", true) == 0) {
- ApplyAnimation(playerid,"GYMNASIUM","GYMshadowbox",4.0,1,1,1,1,0);
- return 1;
- }
- // Lay 2
- if(strcmp(cmd, "/lay2", true) == 0) {
- ApplyAnimation(playerid,"SUNBATHE","Lay_Bac_in",3.0,0,1,1,1,0);
- return 1;
- }
- // Gogogo
- if(strcmp(cmd, "/chant", true) == 0) {
- ApplyAnimation(playerid,"RIOT","RIOT_CHANT",4.0,1,1,1,1,0);
- return 1;
- }
- // Finger
- if(strcmp(cmd, "/finger", true) == 0) {
- ApplyAnimation(playerid,"RIOT","RIOT_FUKU",2.0,0,0,0,0,0);
- return 1;
- }
- // Shouting
- if(strcmp(cmd, "/shouting", true) == 0) {
- ApplyAnimation(playerid,"RIOT","RIOT_shout",4.0,1,0,0,0,0);
- return 1;
- }
- // Cop stance
- if(strcmp(cmd, "/cop", true) == 0) {
- ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,1,1,1);
- return 1;
- }
- // Elbow
- if(strcmp(cmd, "/elbow", true) == 0) {
- ApplyAnimation(playerid,"FIGHT_D","FightD_3",4.0,0,1,1,0,0);
- return 1;
- }
- // Knee kick
- if(strcmp(cmd, "/kneekick", true) == 0) {
- ApplyAnimation(playerid,"FIGHT_D","FightD_2",4.0,0,1,1,0,0);
- return 1;
- }
- // Fight stance
- if(strcmp(cmd, "/fstance", true) == 0) {
- ApplyAnimation(playerid,"FIGHT_D","FightD_IDLE",4.0,1,1,1,1,0);
- return 1;
- }
- // Ground punch
- if(strcmp(cmd, "/gpunch", true) == 0) {
- ApplyAnimation(playerid,"FIGHT_B","FightB_G",4.0,0,0,0,0,0);
- return 1;
- }
- // Air kick
- if(strcmp(cmd, "/airkick", true) == 0) {
- ApplyAnimation(playerid,"FIGHT_C","FightC_M",4.0,0,1,1,0,0);
- return 1;
- }
- // Ground kick
- if(strcmp(cmd, "/gkick", true) == 0) {
- ApplyAnimation(playerid,"FIGHT_D","FightD_G",4.0,0,0,0,0,0);
- return 1;
- }
- // Low throw
- if(strcmp(cmd, "/lowthrow", true) == 0) {
- ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0);
- return 1;
- }
- // Ground kick
- if(strcmp(cmd, "/highthrow", true) == 0) {
- ApplyAnimation(playerid,"GRENADE","WEAPON_throw",4.0,0,0,0,0,0);
- return 1;
- }
- // Deal stance
- if(strcmp(cmd, "/dealstance", true) == 0) {
- ApplyAnimation(playerid,"DEALER","DEALER_IDLE",4.0,1,0,0,0,0);
- return 1;
- }
- // Deal stance
- if(strcmp(cmd, "/pee", true) == 0) {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
- return 1;
- }
- // Knife animations
- if(strcmp(cmd, "/knife", true) == 0)
- {
- if (!strlen(cmdtext[7])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /knife [1-4]");
- switch (cmdtext[7])
- {
- case '1': ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Damage",4.0,0,1,1,1,0);
- case '2': ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0);
- case '3': ApplyAnimation(playerid,"KNIFE","KILL_Knife_Player",4.0,0,0,0,0,0);
- case '4': ApplyAnimation(playerid,"KNIFE","KILL_Partial",4.0,0,1,1,1,1);
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /knife [1-4]");
- }
- return 1;
- }
- // Basket-ball
- if(strcmp(cmd, "/basket", true) == 0)
- {
- if (!strlen(cmdtext[8])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /basket [1-6]");
- switch (cmdtext[8])
- {
- case '1': ApplyAnimation(playerid,"BSKTBALL","BBALL_idleloop",4.0,1,0,0,0,0);
- case '2': ApplyAnimation(playerid,"BSKTBALL","BBALL_Jump_Shot",4.0,0,0,0,0,0);
- case '3': ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0);
- case '4': ApplyAnimation(playerid,"BSKTBALL","BBALL_run",4.1,1,1,1,1,1);
- case '5': ApplyAnimation(playerid,"BSKTBALL","BBALL_def_loop",4.0,1,0,0,0,0);
- case '6': ApplyAnimation(playerid,"BSKTBALL","BBALL_Dnk",4.0,1,0,0,0,0);
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /basket [1-6]");
- }
- return 1;
- }
- // Reloading guns
- if(strcmp(cmd, "/reload", true) == 0)
- {
- if (!strlen(cmdtext[8])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /reload [deagle/smg/ak/m4]");
- if (strcmp("deagle",cmdtext[8],true) == 0)
- {
- ApplyAnimation(playerid,"COLT45","colt45_reload",4.0,0,0,0,0,1);
- }
- else if (strcmp("smg",cmdtext[8],true) == 0 || strcmp("ak",cmdtext[8],true) == 0 || strcmp("m4",cmdtext[8],true) == 0)
- {
- ApplyAnimation(playerid,"UZI","UZI_reload",4.0,0,0,0,0,0);
- }
- else SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /reload [deagle/smg/ak/m4]");
- return 1;
- }
- if(strcmp(cmd, "/gwalk", true) == 0)
- {
- if (!strlen(cmdtext[6])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /gwalk [1/2]");
- new style = strval(cmdtext[6]);
- if (style == 1)
- {
- ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
- }
- else if (style == 2)
- {
- ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
- }
- else SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /gwalk [1/2]");
- return 1;
- }
- //Aiming animation
- if(strcmp(cmd, "/aim", true) == 0)
- {
- if (!strlen(cmdtext[5])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /aim [1-.]");
- switch (cmdtext[5])
- {
- case '1': ApplyAnimation(playerid,"PED","gang_gunstand",4.0,1,1,1,1,1);
- case '2': ApplyAnimation(playerid,"PED","Driveby_L",4.0,0,1,1,1,1);
- case '3': ApplyAnimation(playerid,"PED","Driveby_R",4.0,0,1,1,1,1);
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /aim [1-3]");
- }
- return 1;
- }
- // Leaning animation
- if(strcmp(cmd, "/lean", true) == 0)
- {
- if (!strlen(cmdtext[6])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /lean [1-2]");
- switch (cmdtext[6])
- {
- case '1': ApplyAnimation(playerid,"GANGS","leanIDLE",4.0,0,1,1,1,0);
- case '2': ApplyAnimation(playerid,"MISC","Plyrlean_loop",4.0,0,1,1,1,0);
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /lean [1-2]");
- }
- return 1;
- }
- if(strcmp(cmd, "/run", true) == 0)
- {
- ApplyAnimation(playerid,"PED","sprint_civi",floatstr(cmdtext[5]),1,1,1,1,1);
- printf("%f",floatstr(cmdtext[5]));
- return 1;
- }
- // Clear
- if(strcmp(cmd, "/clearanim", true) == 0) {
- //ClearAnimations(playerid);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 1.0, 0, 0, 0, 0, 0);
- return 1;
- }
- // Strip
- if(strcmp(cmd, "/strip", true) == 0)
- {
- if (!strlen(cmdtext[7])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /strip [A-G]");
- switch (cmdtext[7])
- {
- case 'a', 'A': ApplyAnimation(playerid,"STRIP", "strip_A", 4.1, 1, 1, 1, 1, 1 );
- case 'b', 'B': ApplyAnimation(playerid,"STRIP", "strip_B", 4.1, 1, 1, 1, 1, 1 );
- case 'c', 'C': ApplyAnimation(playerid,"STRIP", "strip_C", 4.1, 1, 1, 1, 1, 1 );
- case 'd', 'D': ApplyAnimation(playerid,"STRIP", "strip_D", 4.1, 1, 1, 1, 1, 1 );
- case 'e', 'E': ApplyAnimation(playerid,"STRIP", "strip_E", 4.1, 1, 1, 1, 1, 1 );
- case 'f', 'F': ApplyAnimation(playerid,"STRIP", "strip_F", 4.1, 1, 1, 1, 1, 1 );
- case 'g', 'G': ApplyAnimation(playerid,"STRIP", "strip_G", 4.1, 1, 1, 1, 1, 1 );
- default: SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /strip [A-G]");
- }
- return 1;
- }
- // Bed Sleep R
- if(strcmp(cmd, "/inbedright", true) == 0) {
- ApplyAnimation(playerid,"INT_HOUSE","BED_Loop_R",4.0,1,0,0,0,0);
- return 1;
- }
- // Bed Sleep L
- if(strcmp(cmd, "/inbedleft", true) == 0) {
- ApplyAnimation(playerid,"INT_HOUSE","BED_Loop_L",4.0,1,0,0,0,0);
- return 1;
- }
- // START DANCING
- if(strcmp(cmd, "/dance", true) == 0) {
- // Get the dance style param
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
- return 1;
- }
- dancestyle = strval(tmp);
- if(dancestyle < 1 || dancestyle > 4) {
- SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
- return 1;
- }
- if(dancestyle == 1) {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
- } else if(dancestyle == 2) {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
- } else if(dancestyle == 3) {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
- } else if(dancestyle == 4) {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
- }
- return 1;
- }
- // -------------------------------------------------------------------------------------------------------
- // jetppack admin
- if (strcmp("/jetpack", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- SetPlayerSpecialAction(playerid,2);
- SendClientMessage(playerid, COLOR_LIGHTRED,"ADMIN | Uzeli ste jetpack, da ga bacite kucajte /mark pa /gotomark !");
- }
- else { SendClientMessage(playerid, COLOR_GREY,"Nemas pristup ovoj komandi.");}
- }
- // Kart race
- if (strcmp("/kotvori", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- MoveDynamicObject(kartkapija,2790.3056640625, 2293.9418945313, 6.532717704773, 10.0);
- SetTimer("GateClose17", 6000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"ADMIN | Otvorio si kapiju za kartrace");
- }
- else { SendClientMessage(playerid, COLOR_GREY,"Nemas pristup ovoj komandi.");}
- }
- if (strcmp(cmd, "/kutrka", true)==0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /kutrka [ID/Ime]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- SetPlayerCheckpoint(giveplayerid, 2800.4856,2293.3689,10.6719,6.0);// ovdje stavite kordinate prvog CP-a. ovo sto pise (8.0)To vaj je velicina CP-a.
- CP[giveplayerid] = 910;
- SendClientMessage(playerid, COLOR_BLUE, "Pozvao si igraca na utrku.");
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, "Pozvan si na drag utrku od Admina/GameMastera");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani da koristite ovu komandu !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gotokart", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2787.5039,2299.9548,10.8033);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 2787.5039,2299.9548,10.8033);
- }
- SendClientMessage(playerid, COLOR_GRAD1, " Teleportovani ste !");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVirWorld] = 0;
- //AdminDuty[playerid] = 1;
- //SetPlayerArmour(playerid, 999);
- //SetPlayerHealth(playerid, 999);
- //SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
- //GetPlayerName(playerid, sendername, sizeof(sendername));
- //format(string, sizeof(string), "[ADMIN] [ID:%d]%s je on duty", playerid, sendername);
- //ABroadCast(COLOR_YELLOW,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu !");
- }
- }
- return 1;
- }
- if (strcmp("/skart", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- k1 = CreateVehicle(571, 2785.1596679688, 2294.7939453125, 10.163023948669, 273.56323242188, -1, -1, 1000);
- k2 = CreateVehicle(571, 2785.1787109375, 2291.4541015625, 10.163023948669, 273.5595703125, -1, -1, 1000);
- k3 = CreateVehicle(571, 2779.3193359375, 2291.41796875, 10.163023948669, 273.5595703125, -1, -1, 1000);
- k4 = CreateVehicle(571, 2779.298828125, 2294.9248046875, 10.163023948669, 273.5595703125, -1, -1, 1000);
- k5 = CreateVehicle(571, 2771.3447265625, 2294.8754882813, 11.164656639099, 270.09631347656, -1, -1, 1000);
- k6 = CreateVehicle(571, 2771.3662109375, 2291.3215332031, 11.164656639099, 273.5595703125, -1, -1, 1000);
- k7 = CreateVehicle(571, 2767.3642578125, 2291.1923828125, 11.665472984314, 273.5595703125, -1, -1, 1000);
- k8 = CreateVehicle(571, 2767.24609375, 2294.8608398438, 11.665472984314, 271.82794189453, -1, -1, 1000);
- k9 = CreateVehicle(571, 2762.8342285156, 2295.0544433594, 11.665472984314, 271.82794189453, -1, -1, 1000);
- k10 = CreateVehicle(571, 2762.9516601563, 2291.3854980469, 11.665472984314, 273.5595703125, -1, -1, 1000);
- SendClientMessage(playerid, COLOR_BLUE,"Napravio si vozila za Kart race");
- }
- else { SendClientMessage(playerid, COLOR_GREY,"Nemas dozvolu za ovu komandu.");}
- }
- // Brisanje vozila brodica
- if (strcmp("/unistikart", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- DestroyVehicle(k1);
- DestroyVehicle(k2);
- DestroyVehicle(k3);
- DestroyVehicle(k4);
- DestroyVehicle(k5);
- DestroyVehicle(k6);
- DestroyVehicle(k7);
- DestroyVehicle(k8);
- DestroyVehicle(k9);
- DestroyVehicle(k10);
- SendClientMessage(playerid,COLOR_WHITE," Sva vozila za karting su unistena");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
- }
- }
- if (strcmp("/unistisr", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- DestroyVehicle(sr1);
- DestroyVehicle(sr2);
- DestroyVehicle(sr3);
- DestroyVehicle(sr4);
- DestroyVehicle(sr5);
- DestroyVehicle(sr6);
- DestroyVehicle(sr7);
- DestroyVehicle(sr8);
- SendClientMessage(playerid,COLOR_WHITE," Sva vozila za speedrace su unistena");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
- }
- }
- if (strcmp("/unistiur", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- DestroyVehicle(ur1);
- DestroyVehicle(ur2);
- DestroyVehicle(ur3);
- DestroyVehicle(ur4);
- DestroyVehicle(ur5);
- DestroyVehicle(ur6);
- DestroyVehicle(ur7);
- DestroyVehicle(ur8);
- DestroyVehicle(ur9);
- DestroyVehicle(ur10);
- DestroyVehicle(ur11);
- DestroyVehicle(ur12);
- DestroyVehicle(ur13);
- DestroyVehicle(ur14);
- SendClientMessage(playerid,COLOR_WHITE," Sva vozila za underground race su unistena");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
- }
- }
- if (strcmp("/unistibdr", cmdtext, true, 10) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
- {
- DestroyVehicle(bdr1);
- DestroyVehicle(bdr2);
- DestroyVehicle(bdr3);
- DestroyVehicle(bdr4);
- DestroyVehicle(bdr5);
- DestroyVehicle(bdr6);
- DestroyVehicle(bdr7);
- DestroyVehicle(bdr8);
- DestroyVehicle(bdr9);
- SendClientMessage(playerid,COLOR_WHITE," Sva vozila za big drift race su unistena");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment