Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:order(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- if(IsPlayerInRangeOfPoint(playerid, 20.0, 1236.112182, -751.863220, 5080.765136))
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- new Hitman[32], skin = -1;
- if(sscanf(params, "s[32]D", Hitman, skin))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order [name]");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 1: Knife ($80), SDPistol ($100), Shotgun ($150), Skin ($250), Deagle ($500), MP5 ($250), Kevlar Vest ($600)");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 2: Rifle ($300), AK47 ($1,000), M4 ($1,200)");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 3: SPAS12 ($3,500), Sniper ($3,500)");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 4: C4 ($5000)");
- return 1;
- }
- else if(strcmp(Hitman,"skin",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1) {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that!");
- }
- else if(IsInvalidSkin(skin)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order skin [skin ID]");
- }
- else if(GetPlayerCash(playerid) >= 250) {
- SetPlayerSkin(playerid, skin);
- PlayerInfo[playerid][pSkin] = skin;
- GivePlayerCash(playerid, -250);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"You have purchased a skin!");
- }
- else SendClientMessage(playerid, COLOR_GREY," You can't afford that!");
- }
- else if(strcmp(Hitman,"Knife",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 80)
- {
- GivePlayerValidWeapon(playerid, 4, 3);
- GivePlayerCash(playerid, -80);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a knife!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"SDPistol",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 100)
- {
- GivePlayerValidWeapon(playerid, 23, 99999);
- GivePlayerCash(playerid, -100);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a silenced pistol!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Shotgun",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 150)
- {
- GivePlayerValidWeapon(playerid, 25, 99999);
- GivePlayerCash(playerid, -150);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a shotgun!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Deagle",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) > 500)
- {
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerCash(playerid, -500);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a Desert Eagle!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"MP5",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 250)
- {
- GivePlayerValidWeapon(playerid, 29, 99999);
- GivePlayerCash(playerid, -250);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased an MP5!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Rifle",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 300)
- {
- GivePlayerValidWeapon(playerid, 33, 99999);
- GivePlayerCash(playerid, -300);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a rifle!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"AK47",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (2+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 1000)
- {
- GivePlayerValidWeapon(playerid, 30, 99999);
- GivePlayerCash(playerid, -1000);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased an AK-47!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"M4",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (2+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 1200)
- {
- GivePlayerValidWeapon(playerid, 31, 99999);
- GivePlayerCash(playerid, -1200);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased an M4!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Vest",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 600)
- {
- SetPlayerArmourEx(playerid, 100);
- GivePlayerCash(playerid, -600);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a kevlar vest!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Spas12",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (3+!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 3500)
- {
- GivePlayerValidWeapon(playerid, 27, 99999);
- GivePlayerCash(playerid, -3500);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a SPAS-12!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Sniper",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (3+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 3500)
- {
- GivePlayerValidWeapon(playerid, 34, 99999);
- GivePlayerCash(playerid, -3500);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a sniper rifle!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"C4",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "YYou're not the required rank for that weapon (4+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 5000)
- {
- PlayerInfo[playerid][pC4Get] = 1;
- PlayerInfo[playerid][pBombs]++;
- GivePlayerCash(playerid, -5000);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased one block of C4!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at the gun shack!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a member of the hitman agency!");
- return 1;
- }
- return 1;
- }
- CMD:f(playerid, params[]) {
- if(gFam[playerid] == 1)
- return SendClientMessage(playerid, TEAM_CYAN_COLOR, "You have your family chat disabled; /togfamily!");
- new string[128];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: (/f)amily [family chat]");
- if(PlayerCuffed[playerid] > 0 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't talk over /f while you're cuffed, hospitalized or tazed.");
- if((PlayerInfo[playerid][pFaction] == 4) || PlayerInfo[playerid][pGang] < 255) {
- new member = PlayerInfo[playerid][pFaction];
- new fam = PlayerInfo[playerid][pGang];
- if(member==4) {
- if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Director %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Vice Director %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Special Agent %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Agent %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
- else { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
- SendFamilyMessage(PlayerInfo[playerid][pFaction], TEAM_AZTECAS_COLOR, string);
- }
- else if(PlayerInfo[playerid][pGang] < 255) {
- if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) %s %s: %s **", FamilyInfo[fam][FamilyRank6], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", FamilyInfo[fam][FamilyRank5], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s **", FamilyInfo[fam][FamilyRank4], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s **", FamilyInfo[fam][FamilyRank3], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s **", FamilyInfo[fam][FamilyRank2], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
- else { format(string, sizeof(string), "** (0) %s %s: %s **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
- SendNewFamilyMessage(PlayerInfo[playerid][pGang], TEAM_AZTECAS_COLOR, string);
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not a part of a Family!");
- return 1;
- }
- CMD:turfs(playerid, params[])
- {
- if(turfWarsRadar[playerid] == 0) {
- SendClientMessageEx(playerid, COLOR_WHITE, "You have enabled the Turf Minimap Radar.");
- ShowTurfWarsRadar(playerid);
- }
- else {
- SendClientMessageEx(playerid, COLOR_WHITE, "You have disabled the Turf Minimap Radar.");
- HideTurfWarsRadar(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement