Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////// ~ Battlefield-Resurrection ~ ////////////////////////
- ///////////////////////// ~ Scripted by RedWingz[LoH] ~ ////////////////////////
- //////////////////////////// ~ Started on 02/06/12 ~ ///////////////////////////
- ////////////////////////////////~ VERSION 2.0 ~ ////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- // Please don't remove the credits. //
- //============================================================================//
- // Includes //
- //============================================================================//
- #include <a_samp>
- #include <sscanf2>
- #include <zcmd>
- //============================================================================//
- // Defines //
- //============================================================================//
- #define COLOR_BASIC 0x0066FFAA
- #define COLOR_RED 0xCC0000AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_LIME 0x10F441AA
- #define COLOR_MAGENTA 0xFF00FFFF
- #define COLOR_NAVY 0x000080AA
- #define COLOR_AQUA 0xF0F8FFAA
- #define COLOR_CRIMSON 0xDC143CAA
- #define COLOR_FLBLUE 0x6495EDAA
- #define COLOR_BISQUE 0xFFE4C4AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_CHARTREUSE 0x7FFF00AA
- #define COLOR_BROWN 0xA52A2AAA
- #define COLOR_CORAL 0xFF7F50AA
- #define COLOR_GOLD 0xB8860BAA
- #define COLOR_GREENYELLOW 0xADFF2FAA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_IVORY 0xFFFF82AA
- #define COLOR_LAWNGREEN 0x7CFC00AA
- #define COLOR_SEAGREEN 0x20B2AAAA
- #define COLOR_LIMEGREEN 0x32CD32AA
- #define COLOR_MIDNIGHTBLUE 0x191970AA
- #define COLOR_MAROON 0x800000AA
- #define COLOR_OLIVE 0x808000AA
- #define COLOR_ORANGERED 0xFF4500AA
- #define COLOR_PINK 0xFFC0CBAA
- #define COLOR_SPRINGGREEN 0x00FF7FAA
- #define COLOR_TOMATO 0xFF6347AA
- #define COLOR_YELLOWGREEN 0x9ACD32AA
- #define COLOR_MEDIUMAQUA 0x83BFBFAA
- #define COLOR_MEDIUMMAGENTA 0x8B008BAA
- #define COLOR_WATER 0x33AAAA33
- #define COL_EASY "{FFF1AF}"
- #define COL_WHITE "{FFFFFF}"
- #define COL_BLACK "{0E0101}"
- #define COL_GREY "{C3C3C3}"
- #define COL_GREEN "{6EF83C}"
- #define COL_RED "{F81414}"
- #define COL_YELLOW "{F3FF02}"
- #define COL_ORANGE "{FFAF00}"
- #define COL_LIME "{B7FF00}"
- #define COL_CYAN "{00FFEE}"
- #define COL_LIGHTBLUE "{00C0FF}"
- #define COL_BLUE "{0049FF}"
- #define COL_MAGENTA "{F300FF}"
- #define COL_VIOLET "{B700FF}"
- #define COL_PINK "{FF00EA}"
- #define COL_MARONE "{A90202}"
- #define COL_CMD "{B8FF02}"
- #define COL_PARAM "{3FCD02}"
- #define COL_SERVER "{AFE7FF}"
- #define COL_VALUE "{A3E4FF}"
- #define COL_RULE "{F9E8B7}"
- #define COL_RULE2 "{FBDF89}"
- #define COL_RWHITE "{FFFFFF}"
- #define COL_LGREEN "{C9FFAB}"
- #define COL_LRED "{FFA1A1}"
- #define COL_LRED2 "{C77D87}"
- //============================================================================//
- // Forwards //
- //============================================================================//
- forward RandMessagesx();
- //============================================================================//
- // Declared New //
- //============================================================================//
- new gTeam[MAX_PLAYERS];
- new KillingSpree[MAX_PLAYERS];
- new iSpawnSet[MAX_PLAYERS];
- new PMEnabled[MAX_PLAYER_NAME];
- //============================================================================//
- // Teams and Team Colors //
- //============================================================================//
- #define TEAM_TERRORISTS 0
- #define TEAM_COPS 1
- #define TEAM_TERRORISTS_COLOR 0xCC0000AA
- #define TEAM_COPS_COLOR 0x0000BBAA
- //============================================================================//
- // Random Spawns //
- //============================================================================//
- new Float:CopSpawns[2][3] = {
- {2297.1064,2452.0115,10.8203},
- {2297.0452,2468.6743,10.8203}
- };
- new Float:TerroristSpawns[23][3] = {
- {1958.3783,1343.1572,15.3746},
- {2199.6531,1393.3678,10.8203},
- {2483.5977,1222.0825,10.8203},
- {2637.2712,1129.2743,11.1797},
- {2000.0106,1521.1111,17.0625},
- {2024.8190,1917.9425,12.3386},
- {2261.9048,2035.9547,10.8203},
- {2262.0986,2398.6572,10.8203},
- {2244.2566,2523.7280,10.8203},
- {2335.3228,2786.4478,10.8203},
- {2150.0186,2734.2297,11.1763},
- {2158.0811,2797.5488,10.8203},
- {1969.8301,2722.8564,10.8203},
- {1652.0555,2709.4072,10.8265},
- {1564.0052,2756.9463,10.8203},
- {1271.5452,2554.0227,10.8203},
- {1441.5894,2567.9099,10.8203},
- {1480.6473,2213.5718,11.0234},
- {1400.5906,2225.6960,11.0234},
- {1598.8419,2221.5676,11.0625},
- {1318.7759,1251.3580,10.8203},
- {1558.0731,1007.8292,10.8125},
- {1705.2347,1025.6808,10.8203}
- };
- main()
- {
- print("\n----------------------------------");
- print(" Battlefield-Resurrection");
- print(" Scripted By RedWingz[LoH]");
- print("----------------------------------\n");
- }
- //============================================================================//
- // Random Messages //
- //============================================================================//
- new RandMessages[][] =
- {
- "[BOT]: Need help ? Use /commands for a list of Commands and Use /help for Server Help!",
- "[BOT]: Want to know who the Server owner is ? Use /credits",
- "[BOT]: The main objective is to kill the other team without getting your ass whooped! ;)",
- "[BOT]: Our Anti-Cheat will kick anyone who attempts to hack, But It's a bitch sometimes...",
- "[BOT]: Want to become an Admin ? Then apply on the forums at [Forums Here]"
- };
- public OnGameModeInit()
- {
- SetGameModeText("Battlefield-Resurrection");
- UsePlayerPedAnims();
- SetTimer("RandMessagesx",300000,1);
- AddPlayerClass(195,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Female Skin//
- AddPlayerClass(124,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Male Skin//
- AddPlayerClass(125,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Male Skin//
- AddPlayerClass(120,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Male Skin//
- AddPlayerClass(211,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Female Skin//
- AddPlayerClass(265,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Male Skin//
- AddPlayerClass(285,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Male Skin//
- AddPlayerClass(286,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Male Skin//
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerToTeamColor(playerid);
- SetPlayerTeamFromClass(playerid, classid);
- SetupPlayerForClassSelection(playerid);
- return 1;
- }
- forward SetupPlayerForClassSelection(playerid);
- public SetupPlayerForClassSelection(playerid)
- {
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
- SetPlayerFacingAngle(playerid, 270.0);
- SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
- SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
- }
- forward SetPlayerToTeamColor(playerid);
- public SetPlayerToTeamColor(playerid)
- {
- if(gTeam[playerid] == TEAM_TERRORISTS)
- {
- SetPlayerColor(playerid, TEAM_TERRORISTS_COLOR);
- }
- else if(gTeam[playerid] == TEAM_COPS)
- {
- SetPlayerColor(playerid, TEAM_COPS_COLOR);
- }
- return 1;
- }
- forward SetPlayerTeamFromClass(playerid, classid);
- public SetPlayerTeamFromClass(playerid, classid)
- {
- if(classid == 0)
- {
- gTeam[playerid] = TEAM_TERRORISTS;
- }
- else if(classid == 1)
- {
- gTeam[playerid] = TEAM_COPS;
- }
- return 1;
- }
- public RandMessagesx()
- {
- SendClientMessageToAll(COLOR_LAWNGREEN, RandMessages[random(sizeof(RandMessages))]);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new name[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s [ID:%d] has joined the server. [Connected]",name, playerid);
- SendClientMessageToAll(COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_GREEN, "Welcome to Battlefield Resurrection!");
- SendClientMessage(playerid, COLOR_YELLOW, "Have fun and kick ass!");
- PMEnabled[playerid] = 1;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new name[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "%s has left the server. [Timed Out]", name);
- case 1: format(string, sizeof(string), "%s has left the server. [Leaving]", name);
- case 2: format(string, sizeof(string), "%s has left the server. [Kicked/Banned]", name);
- }
- SendClientMessageToAll(COLOR_GREY, string);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid, COLOR_ORANGE, "You have officialy spawned!");
- SetPlayerInterior(playerid,0);
- SetPlayerRandomSpawn(playerid);
- return 1;
- }
- forward SetPlayerRandomSpawn(playerid);
- public SetPlayerRandomSpawn(playerid)
- {
- if (iSpawnSet[playerid] == 1)
- {
- new rand = random(sizeof(CopSpawns));
- SetPlayerPos(playerid, CopSpawns[rand][0], CopSpawns[rand][1], CopSpawns[rand][2]);
- SetPlayerFacingAngle(playerid, 270.0);
- }
- else if (iSpawnSet[playerid] == 0)
- {
- new rand = random(sizeof(TerroristSpawns));
- SetPlayerPos(playerid, TerroristSpawns[rand][0], TerroristSpawns[rand][1], TerroristSpawns[rand][2]);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(killerid, playerid, reason);
- KillingSpree[killerid] ++;
- KillingSpree[playerid] = 0;
- SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
- new str[256], KillerName[MAX_PLAYER_NAME];
- GetPlayerName(killerid, KillerName, sizeof(KillerName));
- if(KillingSpree[killerid] == 1)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Getting Started! ~n~ ~w~1 Kill", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 2)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Double Kill! ~n~ ~w~2 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 3)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Tripple Kill! ~n~ ~w~3 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 4)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~On Fire! ~n~ ~w~4 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 5)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Rampage! ~n~ ~w~5 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 6)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Overkill! ~n~ ~w~6 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 7)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Monster Kill! ~n~ ~w~7 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 8)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Killimanjaro! ~n~ ~w~8 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 9)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Ludicrous Kill! ~n~ ~w~9 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 10)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Killionaire! ~n~ ~w~10 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 11)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Unstoppable Killer! ~n~ ~w~11 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 12)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Godlike! ~n~ ~w~12 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 13)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Beyond Godlike! ~n~ ~w~13 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 14)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Fuckin' Insane! ~n~ ~w~14 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 15)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~15 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 16)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~16 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 17)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~17 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 18)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~18 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 19)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~19 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 20)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~20 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 21)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~21 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 22)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~22 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 23)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~23 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 24)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~24 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 25)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~25 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 26)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~26 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 27)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~27 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 28)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~28 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 29)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~29 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 30)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~30 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 31)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~31 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 32)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~32 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 33)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~33 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 34)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~34 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 35)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~35 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 36)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~36 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 37)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~37 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 38)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~38 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 39)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~39 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 40)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~40 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 41)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~41 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 42)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~42 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 43)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~43 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 44)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~44 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 45)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~45 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 46)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~46 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 47)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~47 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 48)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~48 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 49)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~49 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 50)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~50 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 51)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~51 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 52)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~52 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 53)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~53 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 54)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~54 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 55)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~55 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 56)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~56 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 57)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~57 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 58)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~58 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 59)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~59 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 60)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~60 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 61)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~61 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 62)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~62 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 63)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~63 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 64)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~64 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 65)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~65 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 66)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~66 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 67)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~67 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 68)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~68 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 69)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~69 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 70)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~70 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 71)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~71 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 72)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~72 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 73)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~73 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 74)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~74 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 75)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~75 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 76)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~76 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 77)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~77 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 78)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~78 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 79)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~79 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 80)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~80 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 81)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~81 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 82)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~82 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 83)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~83 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 84)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~84 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 85)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~85 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 86)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~86 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 87)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~87 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 88)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~88 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 89)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~89 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 90)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~90 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 91)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~91 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 92)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~92 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 93)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~93 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 94)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~94 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 95)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~95 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 96)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~96 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 97)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~97 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 98)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~98 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 99)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~99 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- if(KillingSpree[killerid] == 100)
- {
- format(str, sizeof(str), "~r~%s ~n~ ~r~Woaaaaaaaahh! Hax0r Much?! ~n~ ~w~100 Kills", KillerName);
- GameTextForAll(str, 5000, 5);
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- SendClientMessage(playerid, COLOR_LAWNGREEN, "You have entered a vehicle.");
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- SendClientMessage(playerid, COLOR_CRIMSON, "You have left your vehicle.");
- return 1;
- }
- /*public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- */
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(!success)
- {
- new pip[16];
- new string[128];
- new pName[MAX_PLAYER_NAME];
- printf("Attempted RCON Login by %s Using the password %s",ip, password);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- GetPlayerIp(i, pip, sizeof(pip));
- if(!strcmp(ip, pip, true))
- {
- SendClientMessage(i, COLOR_PINK, "You weren't supposed to do that, Anyway... GoodBai!");
- format(string, sizeof(string), "%s has been banned for attempting to login to the RCON.",pName);
- SendClientMessageToAll(COLOR_PINK, string);
- Ban(i);
- }
- }
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1338)
- {
- if(!response)
- SendClientMessage(playerid, COLOR_RED, "You have not accepted the rules, therefore you have been kicked!");
- Kick(playerid);
- }
- if(dialogid == 1338)
- {
- if(response)
- SendClientMessage(playerid, COLOR_LAWNGREEN, "Thank you for accepting the rules!");
- }
- switch(dialogid)
- {
- case 1335:
- {
- if(!response)
- {
- SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2990381"); //Vocal Trance//
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off.");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270282");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off."); //Absolute Blues Hits//
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off."); //181.FM Kickin' Country//
- }
- case 3:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //180 Hot Jamz//
- }
- case 4:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275878");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //Musik Main//
- }
- case 5:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //.977 the Hitz Channel//
- }
- case 6:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //Radio Paradise//
- }
- case 7:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1543115");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //BlackBeats FM//
- }
- case 8:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=744420");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //Defjay.com - 100 Percent R&B!//
- }
- case 9:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1105299");
- SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //RockRadio1//
- }
- }
- }
- }
- if(dialogid == 5)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 24, 250);
- GivePlayerMoney(playerid, -2500);
- SendClientMessage(playerid, COLOR_GREENYELLOW, "You have purchased a Desert Eagle bitch!");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 22, 300);
- GivePlayerMoney(playerid, -1500);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Colt 45 bitch!");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 23, 250);
- GivePlayerMoney(playerid, -2000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Silencer bitch!");
- }
- if(listitem == 3)
- {
- if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerMoney(playerid, -2500);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Pump Shotgun bitch!");
- }
- if(listitem == 4)
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 26, 200);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Sawnoff Shotgun bitch!");
- }
- if(listitem == 5)
- {
- if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 27, 250);
- GivePlayerMoney(playerid, -4000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Combat Shotgun bitch!");
- }
- if(listitem == 6)
- {
- if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 29, 400);
- GivePlayerMoney(playerid, -3000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased an MP5 bitch!");
- }
- if(listitem == 7)
- {
- if(GetPlayerMoney(playerid) < 3500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 32, 500);
- GivePlayerMoney(playerid, -3500);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Tec9 bitch!");
- }
- if(listitem == 8)
- {
- if(GetPlayerMoney(playerid) < 3500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 28, 500);
- GivePlayerMoney(playerid, -3500);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Micro SMG bitch!");
- }
- if(listitem == 9)
- {
- if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 31, 350);
- GivePlayerMoney(playerid, -7000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased an M4 bitch!");
- }
- if(listitem == 10)
- {
- if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 30, 350);
- GivePlayerMoney(playerid, -6000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased an Ak47 bitch!");
- }
- if(listitem == 11)
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Sniper Rifle bitch!");
- }
- if(listitem == 12)
- {
- if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "[ERROR: You don't have enough money to buy this weapon!");
- GivePlayerWeapon(playerid, 33, 50);
- GivePlayerMoney(playerid, -4000);
- SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Country Rifle bitch!");
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //============================================================================//
- // Commands //
- //============================================================================//
- CMD:commands(playerid, params[])
- {
- new sz_msg [ 900 ];
- strcat( sz_msg, "[COMMANDS]: /shop /health /armour /credits ~ /help ~ /rules /sinfo\r\n");
- strcat( sz_msg, "[COMMANDS]: /radio ~ /stopradio /relog \r\n");
- ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Commands", sz_msg, "Okay", "Close");
- return 1;
- }
- CMD:help(playerid, params[])
- {
- new sz_msg [ 900 ];
- strcat( sz_msg, "[Help]: This Server is currently under beta as you can see it is not finished yet.\r\n");
- strcat( sz_msg, "[Help]: If you have any concerns about the server, Then please report them at [Forums Here]\r\n");
- strcat( sz_msg, "[Help]: If you're stuck, Use /commands to view a list of commands.\r\n");
- strcat( sz_msg, "[Help]: If you want to find out about the server more, Use /sinfo!");
- ShowPlayerDialog(playerid, 1336, DIALOG_STYLE_MSGBOX, "Sever Help", sz_msg, "Okay", "Close");
- return 1;
- }
- CMD:health(playerid, params[])
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough cash!");
- SendClientMessage(playerid, COLOR_LIMEGREEN, "You have restored your health for $5,000!");
- SetPlayerHealth(playerid, 100);
- GivePlayerMoney(playerid, -5000);
- return 1;
- }
- CMD:armour(playerid, params[])
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough cash!");
- SendClientMessage(playerid, COLOR_LIMEGREEN, "You have restored your armour for $10,000!");
- SetPlayerArmour(playerid, 100);
- GivePlayerMoney(playerid, -10000);
- return 1;
- }
- CMD:rules(playerid, params[])
- {
- new sz_msg [ 900 ];
- strcat( sz_msg, "~ On Purpose Teamkill - [5 Minute Jail]\r\n");
- strcat( sz_msg, "~ Flaming / Insulting - [10 Minute Jail] - Again - [30 Minute Jail]\r\n");
- strcat( sz_msg, "~ Racism - [15 Minute Jail] - Again - [2 Day Temp Ban]\r\n");
- strcat( sz_msg, "~ Spamming /report - [15 Minute Jail]\r\n");
- strcat( sz_msg, "~ PrivateMessage Spam - [10 Minute Jail]\r\n");
- strcat( sz_msg, "~ Chat spam / flood - [20 Minute Jail]\r\n");
- strcat( sz_msg, "~ Admin Insults - [1 Hour Jail] - Again - [3 Day Temp Ban]\r\n");
- strcat( sz_msg, "~ CLEO Mods - [Temp Ban]\r\n");
- strcat( sz_msg, "~ Hacking - [Ban] - Appeal on the forums\r\n");
- strcat( sz_msg, "~ Advertising Server IP's - [Permanent Ban] - Server Names - [1 Hour Jail]\r\n");
- ShowPlayerDialog(playerid, 1338, DIALOG_STYLE_MSGBOX, "Rules", sz_msg, "Agree", "Disagree");
- return 1;
- }
- CMD:credits(playerid, params[])
- {
- new sz_msg [ 900 ];
- strcat( sz_msg, "[Server Owner]: [Owner]\r\n");
- strcat( sz_msg, "[Server Co-Owner]: [Co-Owner]\r\n");
- strcat( sz_msg, "[Server Scripters]: [Scripters]\r\n");
- strcat( sz_msg, "[Server Mappers]: [Mappers]\r\n");
- ShowPlayerDialog(playerid, 1339, DIALOG_STYLE_MSGBOX, "Credits", sz_msg, "Okay", "Close");
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_RED, "You have commited suicide!");
- SetPlayerHealth(playerid, 0.0);
- return 1;
- }
- CMD:radio(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIMEGREEN, "You have turned the radio on.");
- ShowPlayerDialog(playerid, 1335, DIALOG_STYLE_LIST, "Radio", "1) Vocal Trance\r\n2) Absolute Blues Hits\r\n3) 181.FM Kickin' Country\r\n4) Hot 108 Jamz\r\n5) Musik Main\r\n6) .977 The Hitz Channel\r\n7) Radio Paradise\r\n8) BlackBeats FM\r\n9) Defjay.com - 100 Percent R&B!\r\n10) RockRadio1\r\n", "Select", "Cancel");
- return 1;
- }
- CMD:stopradio(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_RED, "You have turned the radio off.");
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- CMD:sinfo(playerid, params[])
- {
- new sz_msg [ 900 ];
- strcat( sz_msg, "[Server Info]\r\n");
- strcat( sz_msg, "[Server Info]\r\n");
- ShowPlayerDialog(playerid, 1334, DIALOG_STYLE_MSGBOX, "Server Info", sz_msg, "Okay", "Close");
- return 1;
- }
- CMD:shop(playerid, params[])
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Shop", "Desert Eagle ($2500)\nColt 45 ($1500)\nSilencer ($2000)\nPump Shotgun ($2500)\nSawnoff Shotgun ($5000)\nCombat Shotgun ($4000)\nMP5 ($3000)\nTec9 ($3500)\nMicro SMG ($3500)\nM4 ($7000)\nAk47 ($6000)\nSniper Rifle ($5000)\nCountry Rifle ($4500)", "Buy", "Cancel");
- return 1;
- }
- CMD:relog(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_RED, "You have used the command /relog, Please relog. ;P");
- Kick(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement