Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <Dini>
- //====================================COLORS==============//
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_NICERED 0xFF0000FF
- #define COLOR_MODRA 0x0088FFFF
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define COLOR_BLUE 0x0000FFAA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BROWN 0x993300AA
- #define COLOR_CYAN 0x99FFFFAA
- #define COLOR_LIME 0x99FF00AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_GAMES 0xFFFFFFAA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_LIME 0x99FF00AA
- #define COLOR_LIGHTYELLOW 0xFAEAA9FF
- #define COLOR_LIGHTORANGE 0xF7A26FFF
- #define COLOR_HNEDA2 0x8B4513AA
- #define COLOR_CERVENA 0xFF0000AA
- #define COLOR_MODRA2 0x0000FFAA
- #define COLOR_VIP 0xDDD100FF
- //====================================NEW COLORS=========================//
- #define COLOR_ASKQ 0xFF0000FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_RED 0xBD0000FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x9EC73DAA
- #define COLOR_GROVE 0x00FF00FF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0xDABB3EAA
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_YELLOW3 0xF2FB25FF
- #define COLOR_ORANGE 0xF64000F6
- /*#define MAX_PINGO 2500*/
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_ALLDEPT 0xFF8282AA
- #define COLOR_NEWS 0x458E1DAA
- #define COLOR_OOC 0xB1C8FBAA
- //=========================================END COLORS===============//
- #define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1
- //==========================================================================//
- //===========================TEAMS====================================//
- new gTeam[MAX_PLAYERS];
- //new PickedClass[MAX_PLAYERS];// this variable can be used in many functions
- #define TEAM_Humans 1
- #define TEAM_Zombies 2
- //==========Humans classes=============//
- #define TEAM_Survivor 3
- #define TEAM_Cop 4
- #define TEAM_Medic 5
- #define TEAM_Knocker 6
- #define TEAM_Stars 7
- //===========Zombie Classes============/
- #define TEAM_Normalzombie 8
- #define TEAM_Drinkzombie 9
- #define TEAM_Speedzombie 10
- #define TEAM_Boomerzombie 11
- #define TEAM_Tankzombie 12
- #define TEAM_Madzombie 13
- #define TEAM_Witchzombie 14
- #define TEAM_Nemseszombie 15
- //============================Teams END==========================================//
- //=================================REGISTER/LOGIN stuffs=====================//
- #define REGISTER 1
- #define LOGIN 2
- new bool:IsLogged[MAX_PLAYERS];
- new file[MAX_PLAYERS][128];
- forward OnPlayerRegister(playerid, Password[]);
- forward OnPlayerLogin(playerid, Password[]);
- forward OnPlayerSaveAcount(playerid);
- new Vip[MAX_PLAYERS];
- new AdminLevel[MAX_PLAYERS];
- new AdminDuty[MAX_PLAYERS];
- new TimeKicked[MAX_PLAYERS];
- new TimeBanned[MAX_PLAYERS];
- new TimeSlapped[MAX_PLAYERS];
- new TimeMuted[MAX_PLAYERS];
- new Banned[MAX_PLAYERS];
- new Muted[MAX_PLAYERS];
- new Rank[MAX_PLAYERS];
- new XP[MAX_PLAYERS];
- new Kills[MAX_PLAYERS];
- //========================================END REGISTRATION=====================//
- //======================================Other Arrays====================//
- new randomMessages[][] = //here, we're creating the array with the name "randomMessages"
- {
- "[INFO] Vips win +2XP each kill , and more features.", //this is the text of your first message
- "[INFO] If you see a Hacker/Rule breaker do /report [id] [reason] and don't spam!", //this is the text of your second message
- "[INFO] Remember to respect admins/Players,No insultes or swears.", //this is the text of your third message
- "[INFO] More Help: /ucp /help /report" //this is the text of your fifth message
- };
- //Some infection stuff
- new InfectionTime[MAX_PLAYERS]; // Infection System
- new IsInfected[MAX_PLAYERS];
- new StopTimer[MAX_PLAYERS];
- new StopTimer2[MAX_PLAYERS];
- //========================================================================//
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Fort Carson Cops & Robbers RP");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("FCDA");
- SetTimer("RandomMessages", 90000, true);
- //ATMS
- //ROBERS START CARS
- //3DtextLabbels
- Create3DTextLabel("***Use /buy here***",COLOR_MODRA2,-23.3042,-55.4307,1003.5469,183.5917,0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- //Forwards==============================================
- forward RandomMessages();
- //========================RANDOM MESSAGES STUFF==============================//
- public RandomMessages()
- {
- new randomMsg = random(sizeof(randomMessages)); //create a variable "randomMsg" and give it the value of our array we've created ("randomMessages")
- //the word "random" is included into PAWN, which will tell the script, to work randomly with the array
- SendClientMessageToAll(COLOR_ORANGE, randomMessages[randomMsg]); //this will send the content of our array to EVERYBODY on the server
- // the content are strings, and we're using our array "randomMessages" with our created variable "randomMsg" again
- }
- //=================================Infection Timer==================//
- forward infectiontimer();
- public infectiontimer()
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(IsInfected[i] == 1)
- {
- if(!IsPlayerConnected(i)) continue;
- InfectionTime[i] ++;
- if(InfectionTime[i] == 2)
- {
- new Float:Health;
- GetPlayerHealth(i,Health);
- SetPlayerHealth(i, Health-5);
- SendClientMessage(i,COLOR_RED,"You Are infected ! go be cured by a Medic! or Die!");
- InfectionTime[i] = 0;
- }
- }
- }
- return 1;
- }
- ///==========================================================================
- //=================================Zombies winning HP system=========//
- forward ZombieHp();
- public ZombieHp()
- {
- for(new i; i<MAX_PLAYERS; i++)
- {
- if ((gTeam[i] == 8) || (gTeam[i] == 9) || (gTeam[i] == 10))//if Speed+Normal+Drink Zombie
- {
- if(!IsPlayerConnected(i)) continue;
- new Float:Health;
- GetPlayerHealth(i,Health);
- if(Health < 100) SetPlayerHealth(i,Health+2);
- }
- else if ((gTeam[i] == 11) || (gTeam[i] == 12) || (gTeam[i] == 13))//if Boomer+Mad+Tank Zombie
- {
- if(!IsPlayerConnected(i)) continue;
- new Float:Health;
- GetPlayerHealth(i,Health);
- if(Health < 130) SetPlayerHealth(i,Health+4);
- }
- else if (gTeam[i] == 14) //if the player is Witch
- {
- if(!IsPlayerConnected(i)) continue;
- new Float:Health;
- GetPlayerHealth(i,Health);
- if(Health < 150) SetPlayerHealth(i,Health+5);
- }
- else if (gTeam[i] == 15) //if the player is NEMESIS
- {
- if(!IsPlayerConnected(i)) continue;
- new Float:Health;
- GetPlayerHealth(i,Health);
- if(Health < 400) SetPlayerHealth(i,Health+6);
- }
- }
- //appart
- }
- //===================================================================//
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new NAME[100];
- SendClientMessageToAll(0xff0000, NAME);
- printf("OnPlayerConnect(%d)", playerid);
- GetPlayerName(playerid, NAME, 24);
- format(NAME, 100, " %s [ID:%d] has connected to the server", NAME, playerid);
- SendClientMessageToAll(COLOR_GREY, NAME);
- Vip[playerid] =0;
- AdminLevel[playerid] =0;
- Banned[playerid] =0;
- Muted[playerid] =0;
- TimeBanned[playerid] =0;
- TimeKicked[playerid] =0;
- TimeSlapped[playerid] =0;
- TimeMuted[playerid] =0;
- Rank[playerid] =0;
- AdminDuty[playerid] =0;
- XP[playerid] =0;
- IsInfected[playerid] =0;
- if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
- {
- format(file[playerid], 128, "FCDA/%s.ini", PlayerName(playerid));
- IsLogged[playerid] = false;
- if(fexist(file[playerid]))
- {
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "{00CCFF}Login", "{FFFFFF}Please enter password for login \n\n\n{FF0000}Login is required", "Login", "");
- }
- else
- {
- ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "{00CCFF}Registration", "{FFFFFF}Please enter password for registration \n\n\n{FF0000}Registration is required", "Register", "");
- }
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new NAME[100];
- GetPlayerName(playerid, NAME, 30);
- switch (reason) {
- case 0: format(NAME, 100, "%s [ID:%d] has left server. [Crash]", NAME,playerid);
- case 1: format(NAME, 100, "%s [ID:%d] has left server. [Quit]", NAME,playerid);
- case 2: format(NAME, 100, "%s [ID:%d] has left server. [Kick / Ban]", NAME,playerid);
- }
- SendClientMessageToAll(COLOR_GREY, NAME);
- if(IsPlayerConnected(playerid))
- {
- OnPlayerSaveAcount(playerid);
- IsLogged[playerid] = false;
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid,COLOR_WHITE,"REMEMBER: To earn money , kill Players!");
- SendClientMessage(playerid,COLOR_WHITE,"Vips earn money very Quickly, because of their privilages.");
- SendClientMessage(playerid,COLOR_WHITE,"If you want to be a Vip player, ask the Owner 'Sorrow'.");
- SendClientMessage(playerid,COLOR_GREEN,"Good Luck !");
- SetPlayerPos(playerid,-160.2727,1036.9965,19.7640);
- SetPlayerPos(playerid,-160.2727,1036.9965,19.7640);
- SetPlayerFacingAngle(playerid,280.4360);
- StopTimer2[playerid] = SetTimer("ZombieHp", 2000, true);//starts Hp timer
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- IsInfected[playerid] = 0;
- KillTimer(StopTimer[playerid]);
- KillTimer(StopTimer2[playerid]);
- new string[ 70 ], name[ 24 ];
- GetPlayerName( killerid, name, 24 );
- Kills[playerid] =0;
- Kills[killerid] ++;
- if( GetPVarInt( killerid, "Kills" ) == 1 )
- {
- XP[killerid]=XP[killerid]+1;
- GameTextForPlayer(killerid,"~r~First ~w~Kill",1500,1);
- format( string, sizeof string, "%s made a first kill! ", name );
- SendClientMessageToAll(COLOR_WHITE,string);
- }
- if( GetPVarInt( killerid, "Kills" ) == 2 )
- {
- XP[killerid]=XP[killerid]+2;
- GameTextForPlayer(killerid,"~r~Double ~w~Kill",1500,1);
- }
- if( GetPVarInt( killerid, "Kills" ) == 3 )
- {
- XP[killerid]=XP[killerid]+3;
- GameTextForPlayer(killerid,"~r~Triple ~w~Kill",1500,1);
- }
- if( GetPVarInt( killerid, "Kills" ) == 4 )
- {
- XP[killerid]=XP[killerid]+4;
- GameTextForPlayer(killerid,"~r~Killing ~w~Spree",1500,1);
- }
- if( GetPVarInt( killerid, "Kills" ) == 5 )
- {
- XP[killerid]=XP[killerid]+4;
- GameTextForPlayer(killerid,"~r~Over ~w~Kill",1500,1);
- }
- if( GetPVarInt( killerid, "Kills" ) == 6 )
- {
- XP[killerid]=XP[killerid]+5;
- GameTextForPlayer(killerid,"~r~Kill ~w~Joy",1500,1);
- }
- if( GetPVarInt( killerid, "Kills" ) == 7 )
- {
- XP[killerid]=XP[killerid]+5;
- GameTextForPlayer(killerid,"~r~Sniper ~w~Kill",1500,1);
- }
- if( GetPVarInt( killerid, "Kills" ) == 8 )
- {
- XP[killerid]=XP[killerid]+6;
- GameTextForPlayer(killerid,"~r~Mad ~w~Kill",1500,1);
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new PlayerLog[60], Name[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, Name, sizeof(Name));
- format(PlayerLog, sizeof(PlayerLog), "FCDAlogs/chat/%s.txt", Name);
- new File:playerslog = fopen(PlayerLog, io_append);
- format(string, sizeof(string), "%s says: %s/*******/", Name, text);
- fwrite(playerslog, string);
- fclose(playerslog);
- if (Muted[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_RED,"[YOU ARE MUTED YOU CAN NOT SPEAK !]");
- return 0;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- //Modo Commands
- dcmd(clearchat,9,cmdtext);
- dcmd(kick,4,cmdtext);
- dcmd(slap,4,cmdtext);
- dcmd(weather,7,cmdtext);
- //Head Modo Commands
- dcmd(goto,4,cmdtext);
- dcmd(gethere,7,cmdtext);
- dcmd(hpall,5,cmdtext);
- dcmd(mute,4,cmdtext);
- dcmd(aduty,5,cmdtext);
- //Administrator commands
- dcmd(freeze,6,cmdtext);
- dcmd(unfreeze,8,cmdtext);
- dcmd(setskin,7,cmdtext);
- dcmd(ban,3,cmdtext);
- //Head Admin commands
- dcmd(removemoney,11,cmdtext);
- // dcmd(accountban,10,cmdtext);
- //Owner Commands
- dcmd(makeadmin,9,cmdtext);
- dcmd(makevip,7,cmdtext);
- dcmd(velocity,8,cmdtext);
- //PLAYERS COMMANDS
- dcmd(admins,6,cmdtext);
- dcmd(ucp,3,cmdtext);
- dcmd(help,4,cmdtext);
- dcmd(kill,4,cmdtext);
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(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)
- {
- ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Team:","\n{00FF00}Humans {FFFFFF}Team\n{BD0000}Zombies {FFFFFF}Team","CHOOSE","");
- 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)
- {
- /*if((newkeys < oldkeys) && ((gTeam[playerid] == 8) || (gTeam[playerid] == 9) || (gTeam[playerid] == 10)))
- {
- if(oldkeys - newkeys == KEY_SPRINT)
- {
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
- }
- }
- else
- {
- if(newkeys - oldkeys == KEY_SPRINT)
- {
- ApplyAnimation(playerid,"MUSCULAR", "MuscleSprint", 4.0, 1, 1, 1, 1, 1, 1);
- }
- }*/
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- 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[])
- {
- //======================================REGISTER/Login Functions==========//
- if(IsPlayerConnected(playerid))
- {
- if(dialogid == REGISTER)
- {
- if(response == 1)
- {
- OnPlayerRegister(playerid, inputtext);
- }
- }
- if(dialogid == LOGIN)
- {
- if(response == 1)
- {
- new Password[25];
- strmid(Password, inputtext, 0, strlen(inputtext), 25);
- OnPlayerLogin(playerid, Password);
- }
- }
- if(dialogid == 5)
- {
- if(response == 1)
- {
- OnPlayerRegister(playerid, inputtext);
- }
- }
- }
- //==================================HOSPITAL DIALOG=======================
- //========================UCP=============================================//
- if(dialogid == 9)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: //if HISTORY
- {
- new string[200];
- SendClientMessage(playerid, COLOR_YELLOW, "------Your account History :-----");
- format(string, sizeof(string), " {00FF00}Time Kicked: {FFFFFF}%d {00CCFF}/ {00FF00}Time Banned: {FFFFFF}%d {00CCFF}/ {00FF00}Time Slapped: {FFFFFF}%d", TimeKicked[playerid],TimeBanned[playerid],TimeSlapped[playerid]);
- SendClientMessage(playerid,COLOR_WHITE,string);
- format(string, sizeof(string), " {00FF00}Time Muted: {FFFFFF}%d {00CCFF}", TimeMuted[playerid]);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- case 1: //if STATS
- {
- new string[256];
- GetPlayerName(playerid, string, 26);
- format(string, sizeof(string),"__________________________{00FF00}%s {FFFFFF}'s Stats___________________________________ ",string);
- SendClientMessage(playerid, COLOR_WHITE,string);
- format(string, sizeof(string),"{FFFFFF}Password :{00FF00} ******* {FFFFFF}/ Money: {00FF00}$%d {FFFFFF}/ {FFFFFF}/ VipLevel: {00FF00}%d ",GetPlayerMoney(playerid),Vip[playerid]);
- SendClientMessage(playerid, COLOR_WHITE,string);
- format(string, sizeof(string),"{FFFFFF}AdminLevel: {00FF00}%d {FFFFFF}/ Skin: {00FF00}%d",AdminLevel[playerid],GetPlayerSkin(playerid));
- SendClientMessage(playerid, COLOR_WHITE,string);
- format(string, sizeof(string),"________________________________________________________________________________________ ",string);
- SendClientMessage(playerid, COLOR_WHITE,string);
- }
- case 2: //if CHANGEPASS
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{00CCFF}User Pannel", "{FFFFFF}Please enter the New Pass\n\n\n{FF0000}Warning:Don't forget it !", "Change", "");
- }
- ///add more here
- }
- }
- }
- //=======================================Silver Vip Car Spawn=============//
- /* if(dialogid == 10)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: //if Sentinel
- {
- if(GetPlayerMoney(playerid) < 1000) {
- SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
- }
- else{
- GivePlayerMoney(playerid,-1000);
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- new vehicleid = CreateVehicle(405, x+3,y,z, a, -1, -1, -1);
- PutPlayerInVehicle(playerid,vehicleid, 0);
- }
- }
- case 1: //if Elegy
- {
- if(GetPlayerMoney(playerid) < 880) {
- SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
- }
- else{
- GivePlayerMoney(playerid,-880);
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- new vehicleid = CreateVehicle(562, x+3,y,z, a, -1, -1, -1);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- case 2: //if Infernus
- {
- if(GetPlayerMoney(playerid) < 1100) {
- SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
- }
- else{
- GivePlayerMoney(playerid,-1100);
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- new vehicleid = CreateVehicle(411, x+3,y,z, a, -1, -1, -1);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- case 3: //if Premier
- {
- if(GetPlayerMoney(playerid) < 900) {
- SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
- }
- else{
- GivePlayerMoney(playerid,-900);
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- new vehicleid = CreateVehicle(426, x+3,y,z, a, -1, -1, -1);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- case 4: //if HotKnife
- {
- if(GetPlayerMoney(playerid) < 1200) {
- SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
- }
- else{
- GivePlayerMoney(playerid,-1200);
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- new vehicleid = CreateVehicle(434, x+3,y,z, a, -1, -1, -1);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- //Add more here
- }
- }
- }*/
- //=================================HELP COMMANDS DIALOG=========//
- if(dialogid == 11)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: //if General Commands
- {
- SendClientMessage(playerid,COLOR_CYAN,"_________________GENERAL COMMANDS _________________");
- SendClientMessage(playerid,COLOR_WHITE,"/ucp /atm /help /map /buy /medic /report");
- SendClientMessage(playerid,COLOR_CYAN,"_______________________________________________________");
- }
- case 1: //if Admin Commands
- {
- if(AdminLevel[playerid] == 0)
- {
- SendClientMessage(playerid,COLOR_CERVENA,"You Are Not Admin to see those commands.");
- }
- if(AdminLevel[playerid] >= 1)
- {
- SendClientMessage(playerid,COLOR_RED,"_____________________Moderator Commands____________________");
- SendClientMessage(playerid,COLOR_WHITE,"/kick | /clearchat |/kick |/slap |/weather |/a(privat admin chat)");
- SendClientMessage(playerid,COLOR_RED,"_____________________________________________________________");
- }
- if(AdminLevel[playerid] >= 2)
- {
- SendClientMessage(playerid,COLOR_CYAN,"_____________________Head Modo Commands____________________");
- SendClientMessage(playerid,COLOR_WHITE,"/goto |/gethere |/hpall |/armorall");
- SendClientMessage(playerid,COLOR_CYAN,"_____________________________________________________________");
- }
- if(AdminLevel[playerid] >= 3)
- {
- SendClientMessage(playerid,COLOR_ORANGE,"_____________________Administrator Commands____________________");
- SendClientMessage(playerid,COLOR_WHITE,"/freeze |/unfreeze |/setskin |/ban(only for rule breakers)");
- SendClientMessage(playerid,COLOR_ORANGE,"_____________________________________________________________");
- }
- if(AdminLevel[playerid] >= 4)
- {
- SendClientMessage(playerid,COLOR_MODRA,"_____________________Head Admin Commands____________________");
- SendClientMessage(playerid,COLOR_WHITE,"/removemoney");
- SendClientMessage(playerid,COLOR_MODRA,"_____________________________________________________________");
- }
- }
- case 2: //if VIP Infos
- {
- SendClientMessage(playerid,COLOR_CYAN,"_________________VIP Infos _________________");
- SendClientMessage(playerid,COLOR_WHITE,"Any player can be a Vip(Silver or Gold) by asking the Owner 'Sorrow'");
- SendClientMessage(playerid,COLOR_WHITE,"They can forbidden players to send sms to them by /nosms");
- SendClientMessage(playerid,COLOR_WHITE,"Can speak with each other in /vchat.");
- SendClientMessage(playerid,COLOR_WHITE,"Any Vip has a VIP TAG in the front of his head.");
- SendClientMessage(playerid,COLOR_WHITE,"Have Acces to /vshop (coming soon).");
- SendClientMessage(playerid,COLOR_CYAN,"_______________________________________________________");
- }
- case 3: //if Other Infos
- {
- SendClientMessage(playerid,COLOR_CYAN,"_________________Other Infos _________________");
- SendClientMessage(playerid,COLOR_CERVENA,"WE HAVE ANTI-CHEAT, do not hack or you will get a perma ban.");
- SendClientMessage(playerid,COLOR_WHITE,"Admins are players, so insulting admin=insulting players,if there is an abuse=ACCOUNT BAN.");
- SendClientMessage(playerid,COLOR_WHITE,"There is 2 types of ban : 1-Account ban for rule breackers/2-Perma ban for hackers.");
- SendClientMessage(playerid,COLOR_CYAN,"_______________________________________________________");
- }
- }
- }
- }
- //**************************************************************************************************//
- //===============================================TEAMS SYSTEm=========================================//
- if(dialogid == 13)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: //if Cops
- {
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(800 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(2700 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(4600 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- //more
- }
- }
- }
- //********************************************************************************//
- //**************************************************************************************//
- //========================================Humans Spawn Class Dialog====================================//
- if(dialogid == 14)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: //if Survivor
- {
- new RandomSkinH1 = random(6); // choose Random Skin for Survivor
- switch (RandomSkinH1) {
- case 0: SetPlayerSkin(playerid,48);
- case 1: SetPlayerSkin(playerid,47);
- case 2: SetPlayerSkin(playerid,59);
- case 3: SetPlayerSkin(playerid,58);
- case 4: SetPlayerSkin(playerid,72);
- case 5: SetPlayerSkin(playerid,100);
- }
- SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
- SetPlayerFacingAngle(playerid,172.4309);
- GivePlayerWeapon(playerid,23,70);
- GivePlayerWeapon(playerid,25,50);
- gTeam[playerid] = 3;
- SetPlayerHealth(playerid,90);
- GameTextForPlayer(playerid, "You Chose Survivor class , KILL all Zombies!",4000,4);
- }
- //========================================================
- case 1:// if Cop
- {
- if(XP[playerid] >= 400)
- {
- new RandomSkinH2 = random(6); // choose Random Skin for Cops
- switch (RandomSkinH2) {
- case 0: SetPlayerSkin(playerid,283);
- case 1: SetPlayerSkin(playerid,286);
- case 2: SetPlayerSkin(playerid,282);
- case 3: SetPlayerSkin(playerid,288);
- case 4: SetPlayerSkin(playerid,281);
- case 5: SetPlayerSkin(playerid,280);
- }
- SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
- SetPlayerFacingAngle(playerid,172.4309);
- gTeam[playerid] = 4;
- GameTextForPlayer(playerid, "You Chose Cop class , KILL all Zombies!",4000,4);
- GivePlayerWeapon(playerid,25,60);
- GivePlayerWeapon(playerid,24,50);
- SetPlayerHealth(playerid,100);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 400 XP to choose this class!");
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
- }
- }
- //==========================================================
- case 2: //if Medic
- {
- if(XP[playerid] >= 950)
- {
- new RandomSkinH3 = random(4); // choose Random Skin for Medic
- switch (RandomSkinH3) {
- case 0: SetPlayerSkin(playerid,274);
- case 1: SetPlayerSkin(playerid,275);
- case 2: SetPlayerSkin(playerid,276);
- case 3: SetPlayerSkin(playerid,277);
- }
- SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
- SetPlayerFacingAngle(playerid,172.4309);
- gTeam[playerid] = 5;
- GameTextForPlayer(playerid, "You Chose Medic class , Cure Humans & Kill Zombies!",4000,4);
- GivePlayerWeapon(playerid,25,60);
- GivePlayerWeapon(playerid,24,50);
- GivePlayerWeapon(playerid,41,25);
- SetPlayerHealth(playerid,100);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 950 XP to choose this class!");
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
- }
- }
- //==================================================
- case 3: //if Knocker
- {
- if(XP[playerid] >= 2000)
- {
- new RandomSkinH4 = random(4); // choose Random Skin for Knocker
- switch (RandomSkinH4) {
- case 0: SetPlayerSkin(playerid,112);
- case 1: SetPlayerSkin(playerid,111);
- case 2: SetPlayerSkin(playerid,113);
- case 3: SetPlayerSkin(playerid,122);
- }
- SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
- SetPlayerFacingAngle(playerid,172.4309);
- gTeam[playerid] = 6;
- GameTextForPlayer(playerid, "You Chose Knocker class Kill Zombies!",4000,4);
- GivePlayerWeapon(playerid,25,60);
- GivePlayerWeapon(playerid,24,50);
- GivePlayerWeapon(playerid,35,2);
- SetPlayerSkillLevel(playerid,24,100);
- SetPlayerHealth(playerid,100);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 2,000 XP to choose this class!");
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
- }
- }
- //=================================================
- case 4: //if STARS
- {
- if(XP[playerid] >= 7000)
- {
- new RandomSkinH5 = random(4); // choose Random Skin for STARS
- switch (RandomSkinH5) {
- case 0: SetPlayerSkin(playerid,287);
- case 1: SetPlayerSkin(playerid,285);
- }
- SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
- SetPlayerFacingAngle(playerid,172.4309);
- gTeam[playerid] = 7;
- GameTextForPlayer(playerid, "You Chose S.T.A.R.S class Kill Zombies & Nemesis !",4000,4);
- GivePlayerWeapon(playerid,31,400);
- GivePlayerWeapon(playerid,24,60);
- GivePlayerWeapon(playerid,35,6);
- SetPlayerSkillLevel(playerid,24,100);
- SetPlayerSkillLevel(playerid,31,100);
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 7,000 XP to choose this class!");
- ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
- }
- }
- case 5:
- {
- ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Team:","\n{00FF00}Humans {FFFFFF}Team\n{BD0000}Zombies {FFFFFF}Team","CHOOSE","");
- }
- //more Humans Class Here
- }
- }
- }
- //========*************************END HUMAN CLASS SPAWN=========================//
- //=====================================Zombie Class=====================//
- if(dialogid == 15)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: //if Normal Zombie
- {
- new RandomSkinZ1 = random(4); // choose Random Skin for Zombies
- switch (RandomSkinZ1) {
- case 0: SetPlayerSkin(playerid,78);
- case 1: SetPlayerSkin(playerid,79);
- case 2: SetPlayerSkin(playerid,132);
- case 3: SetPlayerSkin(playerid,134);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 8;
- SetPlayerHealth(playerid,100);
- GameTextForPlayer(playerid, "You Chose Zombie class , eat some brains !",4000,4);
- }
- //========================================================
- case 1:// if Drink Zombie
- {
- if(XP[playerid] >= 600)
- {
- new RandomSkinZ2 = random(2); // choose Random Skin for Drink
- switch (RandomSkinZ2) {
- case 0: SetPlayerSkin(playerid,136);
- case 1: SetPlayerSkin(playerid,137);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 9;
- GameTextForPlayer(playerid, "You Chose Drink Zombie class , eat some brains !",4000,4);
- SetPlayerHealth(playerid,100);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 600 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- //==========================================================
- case 2:// if Drink Zombie
- {
- if(XP[playerid] >= 1500)
- {
- new RandomSkinZ3 = random(3); // choose Random Skin for SpeedZombie
- switch (RandomSkinZ3) {
- case 0: SetPlayerSkin(playerid,143);
- case 1: SetPlayerSkin(playerid,144);
- case 2: SetPlayerSkin(playerid,146);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 10;
- GameTextForPlayer(playerid, "You Chose Speed Zombie class , eat some brains !",4000,4);
- SetPlayerHealth(playerid,100);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 1,500 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- //==================================================
- case 3:// if Boomer
- {
- if(XP[playerid] >= 2900)
- {
- new RandomSkinZ4 = random(3); // choose Random Skin for Boomer
- switch (RandomSkinZ4) {
- case 0: SetPlayerSkin(playerid,168);
- case 1: SetPlayerSkin(playerid,241);
- case 2: SetPlayerSkin(playerid,242);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 11;
- GameTextForPlayer(playerid, "You Chose Boomer Zombie class , eat some brains !",4000,4);
- SetPlayerHealth(playerid,130);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 2,900 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- //=================================================
- case 4:// if Tank
- {
- if(XP[playerid] >= 7800)
- {
- new RandomSkinZ5 = random(3); // choose Random Skin for Tank
- switch (RandomSkinZ5) {
- case 0: SetPlayerSkin(playerid,30);
- case 1: SetPlayerSkin(playerid,29);
- case 2: SetPlayerSkin(playerid,28);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 12;
- GameTextForPlayer(playerid, "You Chose Tank Zombie class , eat some brains !",4000,4);
- SetPlayerHealth(playerid,130);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 7,800 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- case 5:// if Mad Zombie
- {
- if(XP[playerid] >= 10000)
- {
- new RandomSkinZ6 = random(2); // choose Random Skin for Mad
- switch (RandomSkinZ6) {
- case 0: SetPlayerSkin(playerid,111);
- case 1: SetPlayerSkin(playerid,112);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 13;
- GameTextForPlayer(playerid, "You Chose Mad Zombie class , eat some brains !",4000,4);
- SetPlayerHealth(playerid,130);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 10,000 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- //=============
- case 6:// if witch
- {
- if(XP[playerid] >= 14000)
- {
- new RandomSkinZ7 = random(2); // choose Random Skin for witch
- switch (RandomSkinZ7) {
- case 0: SetPlayerSkin(playerid,111);
- case 1: SetPlayerSkin(playerid,112);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 14;
- GameTextForPlayer(playerid, "You Chose Witch Zombie class , eat some brains !",4000,4);
- SetPlayerHealth(playerid,150);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 14,000 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- //============
- case 7:// if Nemesis
- {
- if(XP[playerid] >= 20000)
- {
- new RandomSkinZ8 = random(2); // choose Random Skin for Nemesis
- switch (RandomSkinZ8) {
- case 0: SetPlayerSkin(playerid,33);
- case 1: SetPlayerSkin(playerid,5);
- }
- SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
- SetPlayerFacingAngle(playerid,359.4201);
- gTeam[playerid] = 15;
- GameTextForPlayer(playerid, "YOU ARE NEMESIS ! Congratulation !!",4000,4);
- SetPlayerHealth(playerid,400);
- GivePlayerWeapon(playerid,38,60);
- }
- else {
- SendClientMessage(playerid,COLOR_CERVENA,"You need 20,000 XP to choose this class!");
- ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
- }
- }
- case 8://back
- {
- ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Team:","\n{00FF00}Humans {FFFFFF}Team\n{BD0000}Zombies {FFFFFF}Team","CHOOSE","");
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //===================================REGISTER===================//
- public OnPlayerRegister(playerid, Password[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(strlen(Password) == 0) return ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "{00CCFF}Registration", "{FFFFFF}Please enter password for registration \n\n\n{FF0000}Registration is required", "Register", "");
- dini_Create(file[playerid]);
- dini_Set(file[playerid], "Password", Password);
- IsLogged[playerid] = true;
- SendClientMessage(playerid, COLOR_MODRA, " *You've successfully registered an account !");
- }
- return 1;
- }
- public OnPlayerLogin(playerid, Password[])
- {
- if(IsPlayerConnected(playerid)) {
- if(strlen(Password) == 0) return ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "{00CCFF}Login", "{FFFFFF}Please enter password for login \n\n\n{FF0000}Login is required", "Login", "");
- if(strcmp(dini_Get(file[playerid], "Password"), Password, true) == 0) {
- IsLogged[playerid] = true;
- SendClientMessage(playerid, COLOR_YELLOW, "Welcome Back in Fort Carson Cops & Robbers Server !");
- GivePlayerMoney(playerid, dini_Int(file[playerid], "Money"));
- SetPlayerScore(playerid, dini_Int(file[playerid], "Score"));
- Vip[playerid] = dini_Int(file[playerid], "Vip");
- AdminLevel[playerid] = dini_Int(file[playerid], "Admin");
- Banned[playerid] = dini_Int(file[playerid], "IGBAN");
- Muted[playerid] = dini_Int(file[playerid], "IGMUTE");
- TimeBanned[playerid] = dini_Int(file[playerid], "TimeBanned");
- TimeKicked[playerid] = dini_Int(file[playerid], "TimeKicked");
- TimeSlapped[playerid] = dini_Int(file[playerid], "TimeSlapped");
- TimeMuted[playerid] = dini_Int(file[playerid], "TimeMuted");
- Rank[playerid] = dini_Int(file[playerid], "Rank");
- XP[playerid] = dini_Int(file[playerid], "XP");
- if(Banned[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, " Your account is banned by our admin team , please post an Unban Appeal.");
- Kick(playerid);
- }
- }
- else {
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "{00CCFF}Login", "{FF0000}Incorrect Password{FFFFFF}\nplease try again", "Login", "");
- }
- }
- return 1;
- }
- public OnPlayerSaveAcount(playerid)
- {
- if(IsPlayerConnected(playerid)) {
- dini_IntSet(file[playerid], "Money", GetPlayerMoney(playerid));
- dini_IntSet(file[playerid], "Score", GetPlayerScore(playerid));
- dini_IntSet(file[playerid], "Vip", Vip[playerid]);
- dini_IntSet(file[playerid], "Admin", AdminLevel[playerid]);
- dini_IntSet(file[playerid], "IGBAN", Banned[playerid]);
- dini_IntSet(file[playerid], "IGMUTE", Muted[playerid]);
- dini_IntSet(file[playerid], "TimeBanned", TimeBanned[playerid]);
- dini_IntSet(file[playerid], "TimeKicked", TimeKicked[playerid]);
- dini_IntSet(file[playerid], "TimeSlapped", TimeSlapped[playerid]);
- dini_IntSet(file[playerid], "TimeMuted", TimeMuted[playerid]);
- dini_IntSet(file[playerid], "Rank", Rank[playerid]);
- dini_IntSet(file[playerid], "XP", XP[playerid]);
- }
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
- {
- //===============================For Normal+Drink+Speed ZOmbie========//
- if((weaponid == 0) && ((gTeam[issuerid] == 8) || (gTeam[issuerid] == 9) || (gTeam[issuerid] == 10)))
- {
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits your ~g~armour ~w~!",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- GameTextForPlayer(playerid,"A ~r~zombie ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-5);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ Infected You !",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-5);
- GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits you !(-5HP)",2000,4);
- }
- }
- //=======================================END==========================//
- //=====================================For Boomer Zombie===========//
- else if((weaponid == 0) && (gTeam[issuerid] == 11))
- {
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- GameTextForPlayer(playerid,"~w~A ~p~Boomer ~w~ hits your ~g~armour ~w~!",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- GameTextForPlayer(playerid,"A ~p~Boomer ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-6);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~w~A ~p~Boomer ~w~ Infected You !",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-6);
- GameTextForPlayer(playerid,"~w~A ~p~Boomer ~w~ hits you !(-6HP)",2000,4);
- }
- }
- //==============================================END====================//
- //=======================================Tank ZOmbie==================//
- else if((weaponid == 0) && (gTeam[issuerid] == 12))
- {
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- SetPlayerVelocity(playerid,1.5,0,1.5);
- SetTimerEx("Velocity",400,false,"i",playerid);
- GameTextForPlayer(playerid,"~w~A ~y~Tank ~w~ hits your ~g~armour ~w~!",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- SetPlayerVelocity(playerid,1.5,0,0.8);
- SetTimerEx("Velocity",400,false,"i",playerid);
- GameTextForPlayer(playerid,"A ~y~Tank ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-7);
- SetPlayerVelocity(playerid,1.5,0,0.8);
- SetTimerEx("Velocity",400,false,"i",playerid);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~w~A ~y~Tank ~w~ Infected You !",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-7);
- SetPlayerVelocity(playerid,1.5,0,0.8);
- SetTimerEx("Velocity",400,false,"i",playerid);
- GameTextForPlayer(playerid,"~w~A ~y~Tank ~w~ hits you !(-7HP)",2000,4);
- }
- }
- //=======================================Mad Zombie====================//
- else if((weaponid == 0) && (gTeam[issuerid] == 13))
- {
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- GameTextForPlayer(playerid,"~w~A ~r~Mad Zombie ~w~ hits your ~g~armour ~w~!",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- GameTextForPlayer(playerid,"A ~r~Mad Zombie ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-10);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~w~A ~r~Mad Zombie ~w~ Infected You !",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-10);
- GameTextForPlayer(playerid,"~w~A ~r~Mad Zombie ~w~ hits you !(-10HP)",2000,4);
- }
- }
- //============================================Witch ==========================//
- else if((weaponid == 0) && (gTeam[issuerid] == 14))
- {
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- GameTextForPlayer(playerid,"~w~A ~p~Witch ~w~ hits your ~g~armour ~w~! RUN !",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- GameTextForPlayer(playerid,"A ~p~Witch ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-20);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~w~A ~p~Witch ~w~ hits you !",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-20);
- GameTextForPlayer(playerid,"~w~A ~p~Witch ~w~ hits you ! (-20 HP)",2000,4);
- }
- }
- //=============================================NEMESIS========================//
- else if((weaponid == 0) && (gTeam[issuerid] == 15))
- {
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- SetPlayerVelocity(playerid,1.5,0,1.5);
- SetTimerEx("Velocity",600,false,"i",playerid);
- GameTextForPlayer(playerid,"~b~NEMESIS ~w~ hits your ~g~armour ~w~! RUN ! Now!",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- SetPlayerVelocity(playerid,1.5,0,1.5);
- SetTimerEx("Velocity",600,false,"i",playerid);
- GameTextForPlayer(playerid,"A ~p~Witch ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-50);
- SetPlayerVelocity(playerid,1.5,0,1.5);
- SetTimerEx("Velocity",600,false,"i",playerid);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~b~NEMESIS ~w~ hits you !(-50HP)",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-50);
- SetPlayerVelocity(playerid,1.5,0,1.5);
- SetTimerEx("Velocity",600,false,"i",playerid);
- GameTextForPlayer(playerid,"~b~NEMESIS ~w~ hits you !(-50HP)",2000,4);
- }
- }
- //============================================ZOMBIES TEAM END=========================//
- return 1;
- }
- //Stocks
- stock PlayerName(playerid){
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- return name;
- }
- stock chrfind(needle, haystack[], start = 0)
- {
- while (haystack[start])
- if (haystack[start++] == needle)
- return start - 1;
- return -1;
- }
- //============================================END REGISTER================//
- //=====================================Moderator COMMANDS=============//
- dcmd_clearchat(playerid, params[])
- {
- if (AdminLevel[playerid] < 1) {
- SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
- }
- else {
- if (AdminLevel[playerid] >= 1) {
- #pragma unused params
- #pragma unused playerid
- for(new c=0;c<65;c++) SendClientMessageToAll(COLOR_WHITE," ");
- new string[200];
- format(string, sizeof(string), " {00FF00} FCDA staff {00CCFF}%s {FFFFFF}cleared CHAT !", PlayerName(playerid));
- SendClientMessageToAll(COLOR_MODRA, string);
- }
- }
- return 1;
- }
- dcmd_kick(playerid, params[])
- {
- if (AdminLevel[playerid] < 1) {
- SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
- }
- else {
- if (AdminLevel[playerid] >= 1) {
- new pos;
- if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] Usage: /kick [ID] [Reason]");
- new id = strval(params);
- if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(strlen(params[pos]) > 50) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Reason is too long !");
- new string[150];
- format(string, sizeof(string), " [!]{FF0000} %s was kicked by{00FF00} FCDA staff {00CCFF}%s [Reason:{FFFFFF} %s]",PlayerName(id), PlayerName(playerid), params[pos]);
- SendClientMessageToAll(COLOR_CERVENA, string);
- TimeKicked[id] ++;
- Kick(id);
- }
- }
- return 1;
- }
- dcmd_slap(playerid, params[])
- {
- if (AdminLevel[playerid] < 1) {
- SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
- }
- else {
- if (AdminLevel[playerid] >= 1) {
- new pos;
- new string[200];
- if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] Usage: /slap [ID] [Reason]");
- new id = strval(params);
- if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- new Float:x,Float:y,Float:z;
- GetPlayerPos(id,x,y,z);
- SetPlayerPos(id,x,y,z+20);
- TimeSlapped[id] ++;
- format(string, sizeof(string), " [!]{FF0000} %s has been slapped by{00FF00} FCDA staff {00CCFF}%s {FFFFFF} for %s",PlayerName(id), PlayerName(playerid), params[pos]);
- SendClientMessage(playerid, COLOR_WHITE,"You have slapped the player.");
- }
- }
- return 1;
- }
- dcmd_weather(playerid, params[])
- {
- if (AdminLevel[playerid] < 1 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
- }
- else {
- if (AdminLevel[playerid] >= 1) {
- new string[200], pos, level;
- if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /weather [weatherid]");
- level = strval(params[pos]);
- if(level < 1 || level > 44) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter number of weather [1-44]");
- format(string, sizeof(string), " **FCDA staff %s set weather to %d !", PlayerName(playerid), level);
- SendClientMessageToAll(COLOR_MODRA, string);
- SetWeather(level);
- }
- }
- return 1;
- }
- dcmd_mute(playerid, params[])
- {
- if (AdminLevel[playerid] < 1 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Only Moderators or than can do that");
- }
- else {
- if (AdminLevel[playerid] >= 1) {
- if(strlen(params) > 50) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Bad parameters !");
- new pos;
- new string[150];
- if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Usage: /mute [ID] [Reason]");
- new CMD_ID = strval(params);
- if(!IsPlayerConnected(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(IsPlayerNPC(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] This is NPC !");
- SendClientMessage(CMD_ID,COLOR_CERVENA,"You Are Muted Now !");
- format(string, sizeof(string), " [!]{FF0000} %s {FFFFFF}is muted by {00FF00}Administrator {00CCFF} %s {FFFFFF}[Reason: {DDD100} %s{FFFFFF}]", PlayerName(CMD_ID),PlayerName(playerid),params[pos]);
- SendClientMessageToAll(COLOR_CERVENA, string);
- Muted[CMD_ID] = 1;
- TimeMuted[CMD_ID] ++;
- }
- }
- return 1;
- }
- dcmd_aduty(playerid, params[])
- {
- #pragma unused params
- if (AdminLevel[playerid] < 1 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " You are not a FCDA staff !");
- }
- else {
- if (AdminDuty[playerid] == 1) {
- AdminDuty[playerid] = 0;
- SendClientMessage(playerid,COLOR_WHITE,"You are now Duty OFF.");
- if (AdminDuty[playerid] == 0) {
- AdminDuty[playerid] = 1;
- SendClientMessage(playerid,COLOR_WHITE,"You are now Duty ON !");
- }
- }
- }
- return 1;
- }
- //==========================================================================//
- //====================================Head Moderator Commands===================//
- dcmd_goto(playerid, params[])
- {
- new pos;
- if(AdminLevel[playerid] < 2 ) return SendClientMessage(playerid, COLOR_CERVENA, " Only head moderator or than can do that !");
- if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /goto [playerid]");
- new id = strval(params[0]);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(id,x,y,z);
- SetPlayerPos(playerid,x,y,z);
- SendClientMessage(playerid, COLOR_WHITE,"You are teleported to his place.");
- return 1;
- }
- dcmd_gethere(playerid, params[])
- {
- new pos;
- if(AdminLevel[playerid] < 2 ) return SendClientMessage(playerid, COLOR_CERVENA, " Only head moderator or than can do that !");
- if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /gethere [playerid]");
- new id = strval(params[0]);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(id,x,y,z);
- SendClientMessage(id, COLOR_WHITE,"An admin teleported you to his place .");
- SendClientMessage(playerid, COLOR_WHITE,"the player is near you now.");
- return 1;
- }
- dcmd_hpall(playerid, params[])
- {
- #pragma unused params
- if (AdminLevel[playerid] < 2 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Only head moderator or than can do that !");
- }
- else {
- if (AdminLevel[playerid] >= 2) {
- for(new i;i<GetMaxPlayers();i++) {
- if(GetPVarInt(playerid,"stringa1") == 0) {
- SetPlayerHealth(i,100);
- new string[60];
- format(string, sizeof(string), " {00FF00} FCDA staff{00CCFF} %s {FFFFFF}healed everyone !", PlayerName(playerid));
- SendClientMessageToAll(COLOR_MODRA, string);
- SetPVarInt(playerid,"stringa1",1);
- }
- }
- }
- }
- return 1;
- }
- //=================================================================================//
- //=======================================Administrator Commands=====================//
- dcmd_freeze(playerid, params[])
- {
- if (AdminLevel[playerid] < 3 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Only Administrator or than can do that !");
- }
- else {
- if (AdminLevel[playerid] >= 3) {
- new string[200], pos;
- if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /freeze [ID]");
- new id = strval(params[0]);
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- format(string, sizeof(string), " **Administrator %s has frozen %s ", PlayerName(playerid), PlayerName(id));
- SendClientMessageToAll(COLOR_MODRA, string);
- TogglePlayerControllable(id,false);
- }
- }
- return 1;
- }
- dcmd_unfreeze(playerid, params[])
- {
- if (AdminLevel[playerid] < 3 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Only Administrator or than can do that !");
- }
- else {
- if (AdminLevel[playerid] >= 3) {
- new string[200], pos;
- if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /freeze [ID]");
- new id = strval(params[0]);
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- format(string, sizeof(string), " **Administrator %s has unfrozen %s ", PlayerName(playerid), PlayerName(id));
- SendClientMessageToAll(COLOR_MODRA, string);
- TogglePlayerControllable(id,true);
- SendClientMessage(id, COLOR_WHITE , " YOU HAVE BEED UNFROZEN BY AN ADMIN !");
- }
- }
- return 1;
- }
- dcmd_setskin(playerid, params[])
- {
- if (AdminLevel[playerid] < 3 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Only Administrator or than can do that !");
- }
- else {
- if (AdminLevel[playerid] >= 3) {
- new pos, level;
- if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /setskin [ID] [skinid]");
- new id = strval(params[0]);
- level = strval(params[pos]);
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(level < 0 || level > 299) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter skin number between [0-299]");
- SetPlayerSkin(id,level);
- SendClientMessage(id, COLOR_YELLOW2, "an admin changed your skin !");
- }
- }
- return 1;
- }
- dcmd_ban(playerid, params[])
- {
- if (AdminLevel[playerid] < 3 ) {
- SendClientMessage(playerid, COLOR_CERVENA, " Only Admin or than can do that");
- }
- else {
- if (AdminLevel[playerid] >= 3) {
- if(strlen(params) > 50) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Bad parameters !");
- new pos;
- new string[150];
- if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Usage: /ban [ID] [Reason]");
- new CMD_ID = strval(params);
- if(!IsPlayerConnected(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(IsPlayerNPC(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] This is NPC !");
- format(string, sizeof(string), "[!] You have been banned by Administrator %s. [Reason: %s]",PlayerName(playerid),params[pos]);
- SendClientMessage(CMD_ID, COLOR_CERVENA, string);
- format(string, sizeof(string), " [!]{FF0000} %s {FFFFFF}was banned by {00FF00}Administrator {00CCFF} %s {FFFFFF}[Reason: {DDD100} %s{FFFFFF}]", PlayerName(CMD_ID),PlayerName(playerid),params[pos]);
- SendClientMessageToAll(COLOR_CERVENA, string);
- format(string, sizeof(string), "ADMINISTRATOR: %s Ban[%s]", PlayerName(playerid), params[pos]);
- Banned[CMD_ID] = 1;
- TimeBanned[CMD_ID] ++;
- dini_Set(file[CMD_ID], "BanReason", params[pos]);
- dini_Set(file[CMD_ID], "BanAdmin", PlayerName(playerid));
- Kick(CMD_ID);
- }
- }
- return 1;
- }
- //==================================================================================//
- //=====================================Head Admin Commands=========================//
- dcmd_removemoney(playerid, params[])
- {
- if (AdminLevel[playerid] < 4 )
- {
- SendClientMessage(playerid, COLOR_CERVENA, " [!] You don't have permission for this command !");
- } else {
- if (AdminLevel[playerid] >= 4)
- {
- new string[200], pos, level;
- if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /removemoney [ID] [1000-20000]");
- new id = strval(params[0]);
- level = strval(params[pos]);
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(level < 1000 || level > 20000) return SendClientMessage(playerid, COLOR_CERVENA, " you can remove money between $1000 and $20000");
- format(string, sizeof(string), " **Administrator %s removed from %s $%d", PlayerName(playerid), PlayerName(id), level);
- SendClientMessageToAll(COLOR_MODRA, string);
- GivePlayerMoney(id,-level);
- }
- }
- return 1;
- }
- //=======================================================================================//
- //=======================================OWNER COMMANDS=============================//
- dcmd_makeadmin(playerid, params[])
- {
- if (AdminLevel[playerid] < 5 )
- {
- SendClientMessage(playerid, COLOR_CERVENA, " [!] You don't have permission for this command !");
- } else {
- if (AdminLevel[playerid] == 5)
- {
- new string[200], pos, level;
- if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /setlevel [ID] [0-5]");
- new id = strval(params[0]);
- level = strval(params[pos]);
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(level < 0 || level > 5) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter number of level [0-5]");
- format(string, sizeof(string), " **Administrator %s set admin level to %s [Level: %d]", PlayerName(playerid), PlayerName(id), level);
- SendClientMessageToAll(COLOR_MODRA, string);
- AdminLevel[id] = level;
- }
- }
- return 1;
- }
- dcmd_makevip(playerid, params[])
- {
- if (AdminLevel[playerid] < 5 )
- {
- SendClientMessage(playerid, COLOR_CERVENA, " [!] You don't have permission for this command !");
- } else {
- if (AdminLevel[playerid] == 5)
- {
- new string[200], pos, level;
- if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /makevip [ID] [0-3]");
- new id = strval(params[0]);
- level = strval(params[pos]);
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
- if(level < 0 || level > 2) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter number of level [0-2]");
- format(string, sizeof(string), " **Administrator %s set Vip level to %s [Level: %d]", PlayerName(playerid), PlayerName(id), level);
- SendClientMessageToAll(COLOR_MODRA, string);
- Vip[id] = level;
- }
- }
- return 1;
- }
- dcmd_velocity(playerid, params[])
- {
- #pragma unused params
- new Float:Health, Float:a;
- GetPlayerArmour(playerid,a);
- if(a > 0)
- {
- SetPlayerArmour(playerid, a-10);
- PlayerPlaySound(playerid, 1136, 0, 0, 0);
- GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits your ~g~armour ~w~!",2000,4);
- }
- else if(a > 0 && a < 10)
- {
- SetPlayerArmour(playerid, 0);
- PlayerPlaySound(playerid, 1136, 0, 0, 0);
- GameTextForPlayer(playerid,"A ~r~zombie ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
- }
- else if (IsInfected[playerid] == 0 && a <= 0)
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-5);
- PlayerPlaySound(playerid, 1136, 0, 0, 0);
- InfectionTime[playerid] = 0;
- StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
- IsInfected[playerid] = 1;
- GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ Infected You !",2000,4);
- }
- else
- {
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid, Health-5);
- PlayerPlaySound(playerid, 1136, 0, 0, 0);
- GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits you !(-5HP)",2000,4);
- }
- return 1;
- }
- //=====================================VELOCITY FUNCTION============//
- forward Velocity(playerid);
- public Velocity(playerid)
- {
- SetPlayerVelocity(playerid,0,0,0);
- return 1;
- }
- //======================================================================================//
- //=====================================PLAYERS COMMANDS=======================================//
- dcmd_admins(playerid, params[])
- {
- #pragma unused params
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_NICERED, "|____ Fort Carson Mad Team DeathMatch Admin Team____|");
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(AdminLevel[i] >= 1 && AdminLevel[i] <= 5)
- {
- new string[128];
- new Admintext[128];
- if(AdminLevel[i]==5) { Admintext = "Server Owner"; }
- else if(AdminLevel[i] == 4) { Admintext = "{FAEAA9}Head Admin"; }
- else if(AdminLevel[i] == 3) { Admintext = "{0088FF}Administrator"; }
- else if(AdminLevel[i] == 2) { Admintext = "{99FFFF}Head Modo"; }
- else if(AdminLevel[i] == 1) { Admintext = "{F7A26F}Moderator"; }
- format(string, sizeof(string), " %s: {FFFFFF}%s", Admintext,PlayerName(i));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- return 1;
- }
- dcmd_ucp(playerid, params[])
- {
- #pragma unused params
- ShowPlayerDialog(playerid,9,DIALOG_STYLE_LIST,"{00FF00}User Control Pannel","\n{FFFFFF}My Account History\n{FFFFFF}My General Stats\n{FFFFFF}Change my Pass","OK","Cancel");
- return 1;
- }
- dcmd_help(playerid, params[])
- {
- #pragma unused params
- ShowPlayerDialog(playerid,11,DIALOG_STYLE_LIST,"{00FF00}more infos :/ranks & /ucp","\n{FFFFFF}General Commands\n{FFFFFF}Admin Commands\n{FFFFFF}VIP Infos\n{FFFFFF}Other Informations","See","Cancel");
- return 1;
- }
- dcmd_kill(playerid, params[])
- {
- #pragma unused params
- SetPlayerHealth(playerid,0);
- return 1;
- }
- //==================================================================//
- //=====================================SILVER VIP COMMANDS===========//
- //===================================================================//
- //=======================================GOLD VIP COMMANDS============//
- //=====================================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement