rendered paste body#define WEP_LIMIT 100 // New#define NUMVALUES 4#define CP_BANK 0#define CP_PIRATE 1#define CP_AMMU 2#define CP_DRAGON 3#define CP_SEXSHOP 4#define CP_BAR 5#define CP_CALIGULA 6#define CP_ZIP 7#define CP_BINCO 8#define CP_TATOO 9#define CP_BOTIQUE 10#define CP_CLUB 11 // New#define CP_SCASINO 12 // New#define P_DRAGON 0#define P_SEXSHOP 1#define P_BAR 2#define P_CALIGULA 3#define P_ZIP 4#define P_BINCO 5#define P_TATOO 6#define P_BOTIQUE 7#define P_CLUB 8 // New#define P_SCASINO 9 // New// Other script stuff#define MAX_POINTS 13 // Editednew Float:checkCoords[MAX_POINTS][4] = {{-36.5483,-57.9948, -17.2655,-49.2967}, //BANK{1894.6128,1445.3431, 2084.9739,1637.8186}, //PIRATE{284.0546,-86.4384, 302.9315,-56.6674}, //AMMUNATION{1925.1511,968.2358, 2019.0715,1067.4276}, //DRAGON{-115.9544,-24.2706, -99.1631,-7.1391}, //SEXSHOP{487.6558,-88.5900, 512.0635, -67.7503}, //BAR{2216.7971,1638.0493, 2255.2097,1714.0806}, //CALIGULA{144.9131,-96.0927, 177.4128,-70.7923}, //ZIP{201.4462,-112.4556, 218.5237,-95.1238}, //BINCO{-204.7623,-44.0326, -200.2330,-39.8128}, //TATOO{416.7485,-84.4242, 422.6890,-74.0611}, //BOTIQUE{474.1408,-26.3825,507.0167,-1.2406}, //CLUB - New{1113.5134,-13.3510,1143.3094,11.6788} //SMALLCASINO - New};new Float:checkpoints[MAX_POINTS][3] = {{-22.2549,-55.6575,1003.5469},{2000.3132,1538.6012,13.5859},{291.0004,-84.5168,1001.5156},{1989.0619,1005.5241,994.4688},{-103.5525,-22.4661,1000.7188},{501.4927,-75.4323,998.7578},{2235.5408,1679.0402,1008.3594},{161.1875,-79.9915,1001.8047},{207.5640,-97.8188,1005.2578},{-203.4864,-41.2045,1002.2734},{418.5547,-80.1667,1001.8047},{501.4731,-13.1705,1000.6797}, // New{1141.3350,9.4818,1000.6797} // New};new checkpointType[MAX_POINTS] = { CP_BANK, CP_PIRATE, CP_AMMU, CP_DRAGON, CP_SEXSHOP, CP_BAR, CP_CALIGULA, CP_ZIP, CP_BINCO, CP_TATOO, CP_BOTIQUE, CP_CLUB, // New CP_SCASINO // New};#define MAX_PROPERTIES 10 // Editednew propertyNames[MAX_PROPERTIES][32] = { "Four Dragons", "Sex Shop", "Shithole Bar", "Caligula", "Zip Shop", "Binco Shop", "Tatoo Parlor", "Botique", "Dance Club", // New "Small Casino" // New};new propertyValues[MAX_PROPERTIES] = { 75000, 25000, 20000, 100000, 15000, 15000, 10000, 20000, 30000, // New 45000 // New};new propertyEarnings[MAX_PROPERTIES] = { 5000, 2000, 1500, 7000, 1000, 1000, 700, 1500, 2500, // New 3800 // New};new propertyOwner[MAX_PROPERTIES] = {999,999,999,999,999,999,999,999,999,999}; // Edited// Other script stuff if(strcmp(cmd, "/commands", true) == 0) { SendClientMessage(playerid, COLOR_GREEN,"Available commands:"); SendClientMessage(playerid, COLOR_YELLOW,"/bank [amount], /withdraw [amount], /balance"); SendClientMessage(playerid, COLOR_YELLOW,"/givecash [playerid] [amount]"); SendClientMessage(playerid, COLOR_YELLOW,"/hitman [playerid] [amount]"); SendClientMessage(playerid, COLOR_YELLOW,"/bounty [playerid]"); SendClientMessage(playerid, COLOR_YELLOW,"/buy, /properties"); SendClientMessage(playerid, COLOR_YELLOW,"/buyweapon, /weaponlist"); // Typo (/weaponist) SendClientMessage(playerid, COLOR_YELLOW,"/bounties, /gangs"); return 1; }// Other script stuff //------------------- /me - New. if(strcmp(cmd, "/me", true)==0) { if(IsPlayerConnected(playerid)) { new tmp[256]; tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [text]"); return 1; } else { GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "** %s %s", string, cmdtext[4]); printf("[me] %s", string); SendClientMessageToAll(COLOR_LIGHTBLUE,string); return 1; } } } //------------------- /buyweapon - Edited. if(strcmp(cmd, "/buyweapon", true) == 0) { new tmp[256]; new tmp2[256]; tmp = strtok(cmdtext, idx); tmp2 = strtok(cmdtext, idx); if(!strlen(tmp) || !strlen(tmp2)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buyweapon [weapon_number] [weapon_amount]"); return 1; } weaponid = strval(tmp); new ammos = strval(tmp2); if(IsPlayerInCheckpoint(playerid)==0 || playerCheckpoint[playerid]!=CP_AMMU) { SendClientMessage(playerid, COLOR_YELLOW, "You need to be in an Ammunation to purchase weapons."); return 1; } if(ammos > WEP_LIMIT || playerWeapons[playerid][weaponid] > WEP_LIMIT || playerWeapons[playerid][weaponid] + ammos > WEP_LIMIT) { format(string, sizeof(string), "The shop refuses to sell anymore weapons to you (Limit: %d).", WEP_LIMIT); SendClientMessage(playerid, COLOR_RED, string); return 1; } if(GetPlayerMoney(playerid) < weaponCost[weaponid]*ammos) { SendClientMessage(playerid, COLOR_RED, "You don't have enough money!"); return 1; } if(weaponid < 0 || weaponid > MAX_WEAPONS-1){ SendClientMessage(playerid, COLOR_RED, "Invalid weapon number."); return 1; } if(ammos < 1) { SendClientMessage(playerid, COLOR_RED, "Invalid weapon amount."); return 1; } format (string, sizeof(string), "You purchased %d %s's for when you spawn.",ammos,weaponNames[weaponid]); SendClientMessage(playerid, COLOR_GREEN, string); GivePlayerWeapon(playerid, weaponIDs[weaponid], weaponAmmo[weaponid]*ammos); playerWeapons[playerid][weaponid] += ammos; GivePlayerMoney(playerid, 0-(weaponCost[weaponid]*ammos)); return 1; }// Other script stuff