Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * In-Game Map Icon Creater by Compton's_Eazy_E
- * Credits -
- * DragoBlue - dudb
- * Ecko - Testing
- * Report Bugs!
- */
- /*
- How To use this:
- 1: Use /createmapicon
- 2: Then make the one you want
- 3: When done, goto script files and it will be there
- NOTE: if your going to make more than 32 map icons, I suggest using a streamer!
- */
- #include <a_samp>
- #include <dudb>
- #pragma unused ret_memcpy
- #define COLOR_WHITE 0xFFFFFFAA
- new Float:mx, Float:my, Float:mz;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" In Game Icon Creator ");
- print(" Made by Skylord ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256], idx;
- new string[256];
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/createmapicon", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new x_nr[256];
- x_nr = strtok(cmdtext, idx);
- if(!strlen(x_nr))
- {
- SendClientMessage(playerid, COLOR_WHITE, " --------USAGE: /createmapicon [IconName]-------- ");
- SendClientMessage(playerid, COLOR_WHITE, " PLANE, GUN, BARBER, BS(Burger Shot), BOAT, SMOKE ");
- SendClientMessage(playerid, COLOR_WHITE, " QUARRY, CATALINA, CESAR, CB(Cluckin' Bell), CJ ");
- SendClientMessage(playerid, COLOR_WHITE, " CRASH(Cops), MILKSHAKE, FLAG, FIRE, HEART, HOSPITAL ");
- SendClientMessage(playerid, COLOR_WHITE, " SKULL, MD(Madd Dogg), DICE, MC(OG Loc), TOOL, OG(OG Loc) ");
- SendClientMessage(playerid, COLOR_WHITE, " PIZZA, POLICE, GP(Green Property). RP(Red Property) ");
- SendClientMessage(playerid, COLOR_WHITE, " CUP(Trophee), RYDER, DISK(Save Disk), SCHOOL, UNKNOWN, SWEET ");
- SendClientMessage(playerid, COLOR_WHITE, " TATTO, TRUTH, TORENO, RT(Red Triads) YT(Yellow Triads) ");
- SendClientMessage(playerid, COLOR_WHITE, " CLOTHES, WOOZIE, ZERO, BULLEYE, BAR, RESTAURANT, TRUCK ");
- SendClientMessage(playerid, COLOR_WHITE, " MONEY, RACE, GYM, CAR, LIGHT, 3D(3Dots), VLA (Varrios Los Aztecas) ");
- SendClientMessage(playerid, COLOR_WHITE, " BALLAS, LSV(Los Santos Vagos), SFR(San Fierro Rifas) ");
- SendClientMessage(playerid, COLOR_WHITE, " GS(Grove Street), PNS(Pay 'n' Spray ");
- SendClientMessage(playerid, COLOR_WHITE, " ------------------------------------------------- ");
- return 1;
- }
- if(strcmp(x_nr,"PLANE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 1, mx, my, mz, 5, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 5, 0); // Plane ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"GUN",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 2, mx, my, mz, 6, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 6, 0); // Gun Shop ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"BARBER",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 3, mx, my, mz, 7, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 7, 0); // Barber ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"SMOKE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 4, mx, my, mz, 8, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 8, 0); // Big Smoke ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"BOAT",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 5, mx, my, mz, 9, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 9, 0); // Boat Yard ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"BS",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 6, mx, my, mz, 10, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 10, 0); // Burger Shot ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"Quarry",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 7, mx, my, mz, 11, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 11, 0); // Quarry ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CATALINA",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 8, mx, my, mz, 12, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 12, 0); // Catalina ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CESAR",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 9, mx, my, mz, 13, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 13, 0); // Cesar ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CB",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 10, mx, my, mz, 14, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 14, 0); // Cluckin' Bell ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CJ",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 11, mx, my, mz, 15, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 15, 0); // Carl Johnson ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CRASH",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 12, mx, my, mz, 16, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 16, 0); // C.R.A.S.H ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"MILKSHAKE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 13, mx, my, mz, 17, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 17, 0); // MilkShake ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"FLAG",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 14, mx, my, mz, 19, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 19, 0); // Red Flag ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"FIRE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 15, mx, my, mz, 20, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 20, 0); // Fire Department ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"HEART",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 16, mx, my, mz, 21, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 21, 0); // Heart ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"HOSPITAL",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 17, mx, my, mz, 22, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 22, 0); // Hospital ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"SKULL",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 18, mx, my, mz, 23, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 23, 0); // Skull ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"MD",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 19, mx, my, mz, 24, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 24, 0); // Madd Dogg ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"DICE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 20, mx, my, mz, 25, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 25, 0); // Dice ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"MC",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 21, mx, my, mz, 26, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 26, 0); // MC OG Loc ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"TOOL",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 22, mx, my, mz, 27, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 27, 0); // Red Tool ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"OG",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 23, mx, my, mz, 28, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 28, 0); // OG Loc ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"PIZZA",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 24, mx, my, mz, 29, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 29, 0); // Pizza ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"POLICE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 25, mx, my, mz, 30, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 30, 0); // Police ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"GP",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 26, mx, my, mz, 31, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 31, 0); // Green Property ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"RP",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 27, mx, my, mz, 32, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 32, 0); // Red Property ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CUP",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 28, mx, my, mz, 33, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 33, 0); // Cup ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"RYDER",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 29, mx, my, mz, 34, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 34, 0); // Ryder ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"DISK",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 30, mx, my, mz, 35, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 35, 0); // Save Disk ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"SCHOOL",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 31, mx, my, mz, 36, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 36, 0); // School ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"UNKNOWN",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 32, mx, my, mz, 37, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 37, 0); // UnKnown ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"SWEET",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 33, mx, my, mz, 38, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 38, 0); // Sweet ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"TATTOO",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 34, mx, my, mz, 39, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 39, 0); // Tattoo ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"TRUTH",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 35, mx, my, mz, 40, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 40, 0); // The Truth ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"TORENO",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 36, mx, my, mz, 42, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 42, 0); // Toreno ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"RT",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 37, mx, my, mz, 43, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 43, 0); // Red Triads ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"YT",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 38, mx, my, mz, 44, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 44, 0); // Yellow Triads ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CLOTHES",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 39, mx, my, mz, 45, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 45, 0); // Clothes ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"WOOZIE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 40, mx, my, mz, 46, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 46, 0); // Woozie ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"ZERO",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 41, mx, my, mz, 47, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 47, 0); // Zero ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"BULLEYE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 42, mx, my, mz, 48, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 48, 0); // Bulls eye ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"BAR",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 43, mx, my, mz, 49, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 49, 0); // Bar ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"RESTAURANT",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 44, mx, my, mz, 50, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 50, 0); // Restaurant ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"TRUCK",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 45, mx, my, mz, 51, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 51, 0); // Truck ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"MONEY",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 46, mx, my, mz, 52, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 52, 0); // Money ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"RACE",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 47, mx, my, mz, 53, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 53, 0); // Race Flag ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"GYM",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 48, mx, my, mz, 54, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 54, 0); // Gym ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"CAR",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 49, mx, my, mz, 55, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 55, 0); // Car ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"LIGHT",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 50, mx, my, mz, 56, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 56, 0); // Light ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"3D",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 51, mx, my, mz, 57, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 57, 0); // 3 Dots ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"VLA",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 52, mx, my, mz, 58, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 58, 0); // Varrios Los Aztecas ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"BALLAS",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 53, mx, my, mz, 59, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 59, 0); // Ballas ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"LSV",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 54, mx, my, mz, 60, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 60, 0); // Los Santos Vagos ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"SFR",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 55, mx, my, mz, 61, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 61, 0); // San Fierro Rifa ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"GS",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 56, mx, my, mz, 62, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 62, 0); // Grove Street ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- else if(strcmp(x_nr,"PNS",true) == 0)
- {
- GetPlayerPos(playerid, mx, my, mz);
- SetPlayerMapIcon( playerid, 57, mx, my, mz, 63, 0 );
- new File:pos = fopen("mapicons.txt", io_append);
- format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 63, 0); // Pay 'N' Spray ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
- fwrite(pos, string);
- fclose(pos);
- SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
- return 1;
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement