Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Zombie system
- ^^
- (o )o)
- <-- | --> .: By Iron Smith :.
- / \
- */
- //==========================================INCLUDES============================
- //============================INCLUDES==========================================
- #include <a_samp>
- #include <zcmd>
- #include <dini>
- #include <dudb>
- #include <colors>
- #include <sscanf2>
- //==============================================================================
- #pragma unused ret_memcpy
- //===================================================COLORS AND DEFLINDS========
- //=======================================COLORS AND DEFLINDS====================
- #define ORANGE 0xFF8000FF
- #define COLOR_LIGHTBLUE 0xFFC801C8
- #define Color_Red 0xFF0000AA
- #define COLOR_BASIC 0x0066FFAA
- #define TEAM_VAGOS_COLOR 0xFFC801C8
- #define COLOR_GRAD1 0xB4B5B7FF
- //================================================FORWARDS======================
- //====================================FORWARDS==================================
- forward zombieAtaca(playerid);
- forward zombieAtaca1(playerid);
- forward ZombieSMessages();
- forward IsInZombieC(playerid);
- forward IsInZombieK(playerid);
- forward IsInZombieD(playerid);
- forward IsInZombieS(playerid);
- //=============================================NEWS=============================
- //===================================NEWS=======================================
- new Text3D:Zombie[ MAX_PLAYERS ];
- new Text3D:Knife[ MAX_PLAYERS ];
- new Text3D:Dildo[ MAX_PLAYERS ];
- new Text3D:Shovel[ MAX_PLAYERS ];
- new playerid2;
- new tmp[256];
- enum ZombieInfo
- {
- Logged,
- Registered,
- Level,
- IsZombieC,
- IsZombieK,
- IsZombieD,
- IsZombieS
- };
- new ZombieS[MAX_PLAYERS][ZombieInfo];
- new playerfile[500];
- //==============================================================================
- new zombie[6],currentObj[MAX_PLAYERS];
- new Float:Zspeed = 5.0;
- new vaiven = 6;
- new ZTimerSpeed = 500;
- new Chainsaw,Knifee,Dilde,Shovele;
- //==============================================================================
- new rMess;
- new bool:RandomMess;
- //==============================================================================
- new ZombieMessages[][] =
- {
- ".:{0000CC} We have new{990066} zombie system,{FF0000} more information in /zombieinfo :.",
- ".:{CC9900} If you wan't register to zombie,{FF6600} use /zombieregister :.",
- ".:{CC9900} If you wan't login to zombie,{FF6600} use /zombielogin :.",
- ".:{CC9900} If you wan't be {0099FF}ZOMBIE,{FF6600} use /zombieshop :."
- };
- //==============================================================================
- new Float:X,Float:Y,Float:Z;
- enum zombiParts
- {
- partModel,
- Float:RelX,
- Float:RelY,
- Float:RelZ,
- Float:RelrX,
- Float:RelrY,
- Float:RelrZ
- }
- //==============================================================================
- new z1[6][zombiParts]=
- {
- {2905,-0.115479,-0.023924, -1.280131, -90.000000, 90.000000,0.000000},
- {2906, -0.218995, 0.200928, -0.253135, 0.000000, 180.000000, 0.000000},
- {2907, -0.032227, -0.045897, -0.544213, 270.000000, 0.000000, 0.000000},
- {2906, 0.187987, 0.158448, -0.265793, 0.000000, 0.000000, 0.000000},
- {2908, 0.000000, 0.000000, 0.000000, 270.000000, 90.000000, 0.000000},
- {2905, 0.101074, -0.012694, -1.288253, 270.000000, 90.000000, 0.000000}
- };
- //==============================================================================
- new z2[6][zombiParts]=
- {
- {2905, 0.005614, -0.110107, -1.280131, -90.000000, 90.000000, 90.000000},
- {2906, -0.148926, -0.180663, -0.253135, 0.000000, 180.000000, 90.000000},
- {2907, 0.047852, -0.039061, -0.544213, 270.000000, 0.000000, 90.000000},
- {2906, -0.152343, 0.171387, -0.265793, 0.000000, 0.000000, 90.000000},
- {2908, 0.000000, 0.000000, 0.000000, 270.000000, 90.000000, 90.000000},
- {2905, 0.000977, 0.090332, -1.288253, 270.000000, 90.000000, 90.000000}
- };
- new TimerAtaca=-1;
- //========================================Restarting============================
- //==============================Restarting======================================
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Zombie system by Iron is loaded (Y)^^");
- print("--------------------------------------\n");
- RandomMess = true;
- rMess = SetTimer("ZombieSMessages", 480000, true);
- return 1;
- }
- //==============================================================================
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Zombie system by Iron is unloaded (N)");
- print("--------------------------------------\n");
- KillTimer(rMess);
- return 1;
- }
- //==================================COMMANDS====================================
- //=========================COMMANDS=============================================
- COMMAND:zombie(playerid, params[])
- {
- if(ZombieS[playerid][Registered] == 0) return SendClientMessage(playerid,ORANGE,"You need to use first /zombieregister or /zombielogin !");
- if(ZombieS[playerid][Level] < 1) return SendClientMessage(playerid,Color_Red,"{990000}You need to be level 1 zombie to use this command !");
- ShowDialog(playerid, 9991);
- return 1;
- }
- //==============================================================================
- COMMAND:zombieshop(playerid, params[])
- {
- if(ZombieS[playerid][Registered] == 0) return SendClientMessage(playerid,ORANGE,"You need to use first /zombieregister or /zombielogin !");
- ShowDialog(playerid, 9992);
- return 1;
- }
- //==============================================================================
- COMMAND:zombieregister(playerid, params[])
- {
- new PlayerName[MAX_PLAYER_NAME];
- new lstring[256];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- ZombieS[playerid][Logged] = 0;
- ZombieS[playerid][Registered] = 0;
- format(lstring,256,"{9933CC}Welcome %s,\n {9933CC}Please {990000}register {9933CC}your zombie account:",PlayerName);
- ShowPlayerDialog(playerid, 74, DIALOG_STYLE_INPUT,"Register",lstring,"Register","Quit");
- return 1;
- }
- //==============================================================================
- COMMAND:zombielogin(playerid, params[])
- {
- new PlayerName[MAX_PLAYER_NAME];
- new lstring[256];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- ZombieS[playerid][Logged] = 1;
- ZombieS[playerid][Registered] = 1;
- format(lstring,256,"{9933CC} Hey {990000}%s,\n\n{9933CC} Please enter your {990000}zombie password{9933CC} to login:",PlayerName);
- ShowPlayerDialog(playerid, 75, DIALOG_STYLE_INPUT,"Login Account",lstring,"Login","Quit");
- return 1;
- }
- //==============================================================================
- COMMAND:sicretcmd(playerid, params[])
- {
- ShowDialog(playerid, 10114);
- return 1;
- }
- //===========================================DIALOGS============================
- //===============================DIALOGS========================================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == 74)
- {
- if(!strlen(inputtext)) return Kick(playerid);
- new pname[MAX_PLAYER_NAME], on[MAX_PLAYER_NAME];
- new string[256];
- GetPlayerName(playerid, pname, sizeof(pname));
- GetPlayerName(playerid2,on,sizeof(on));
- format(playerfile, sizeof(playerfile), "Zombiefs/ZombieS/%s.ini",pname);
- if(dini_Exists(playerfile)) return SendClientMessage(playerid, Color_Red, "You are already registered!");
- dini_Create(playerfile);
- dini_IntSet(playerfile, "Password", udb_hash(inputtext));
- dini_IntSet(playerfile, "Registered", 1);
- dini_IntSet(playerfile, "Level", 0);
- dini_IntSet(playerfile, "IsZombieC", 0);
- dini_IntSet(playerfile, "IsZombieK", 0);
- dini_IntSet(playerfile, "IsZombieD", 0);
- dini_IntSet(playerfile, "IsZombieS", 0);
- dini_IntSet(playerfile, "Logged", 0);
- ZombieS[playerid][Logged] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You have registered your account!");
- format(string,256,"{9933CC}Welcome {990000}%s,\n{9933CC} Please enter your {990000}password{9933CC} to login:",on);
- ShowPlayerDialog(playerid, 75, DIALOG_STYLE_INPUT,"Login Account",string,"Login","Quit");
- }
- if (dialogid == 75)
- {
- if(!strlen(inputtext)) return Kick(playerid);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(playerfile, sizeof(playerfile), "Zombiefs/ZombieS/%s.ini",pname);
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- tmp = dini_Get(playerfile, "Password");
- if(udb_hash(inputtext) == strval(tmp))
- {
- ZombieS[playerid][Level] = dini_Int(playerfile, "Level");
- ZombieS[playerid][IsZombieC] = dini_Int(playerfile, "ChainshawZombie");
- ZombieS[playerid][IsZombieK] = dini_Int(playerfile, "KnifeZombie");
- ZombieS[playerid][IsZombieD] = dini_Int(playerfile, "DildoZombie");
- ZombieS[playerid][IsZombieS] = dini_Int(playerfile, "ShovelZombie");
- ZombieS[playerid][Logged] = 1;
- format(string, 256, "|- You are ZombieAdmin now ! | ZombieLevel: %d |",ZombieS[playerid][Level]);
- SendClientMessage(playerid, COLOR_GREEN, string);
- } else return ShowPlayerDialog(playerid,75,DIALOG_STYLE_INPUT,"Login","{FF0000}ERROR: Invalid {33CC00}Password.\n{FF0000}Please enter a {33CC00}password {FF0000}to login to this account!","Login","Cancel");
- }
- if(response)
- {
- if(dialogid == 9991)
- {
- if(listitem == 0)
- {
- ShowDialog(playerid, 10114);
- }
- if(listitem == 1)
- {
- ShowDialog(playerid, 7001);
- }
- if(listitem == 2)
- {
- ShowDialog(playerid, 7002);
- }
- if(listitem == 3)
- {
- ShowDialog(playerid, 7003);
- }
- if(listitem == 4)
- {
- ShowDialog(playerid, 7004);
- }
- if(listitem == 5)
- {
- ShowDialog(playerid, 7005);
- }
- if(listitem == 6)
- {
- new string[256];
- new Float:pX,Float:pY,Float:pZ,Float:Ang;
- GetPlayerPos(playerid,pX,pY,pZ);
- GetPlayerFacingAngle(playerid,Ang);
- pX=pX+3.0*floatsin(-Ang,degrees);
- pY=pY+3.0*floatcos(-Ang,degrees);
- pZ=pZ+0.7;
- currentObj[playerid]=CrearZombie(pX,pY,pZ,Ang+180.0);
- format(tmp,sizeof(tmp),"The zombie ID is: %d",currentObj[playerid]);
- SendClientMessage(playerid, 0xFFFFFFAA, tmp);
- format(string, sizeof(string), "~w~You ~b~have ~p~make new zombie");
- GameTextForPlayer(playerid, string, 5000, 3);
- }
- if(listitem == 7)
- {
- new string[256];
- format(string, sizeof(string), "~w~Zombie ~p~find ~b~you");
- GameTextForPlayer(playerid, string, 5000, 3);
- if (IsValidObject(zombie[4]))
- {
- if (TimerAtaca!=-1)
- {
- KillTimer(TimerAtaca);
- }
- TimerAtaca=SetTimerEx("zombieAtaca",ZTimerSpeed,1,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombie");
- return 1;
- }
- }
- if(listitem == 8)
- {
- new string[256];
- format(string, sizeof(string), "~w~You ~b~have ~p~stopped zombie");
- GameTextForPlayer(playerid, string, 5000, 3);
- if (IsValidObject(zombie[4]))
- {
- if (TimerAtaca!=-1)
- {
- KillTimer(TimerAtaca);
- }
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombie");
- return 1;
- }
- }
- if(listitem == 9)
- {
- ZombieLookPlayer(playerid);
- SendClientMessage(playerid, COLOR_GREY, "{3333FF}Zombie{663333} watch you !");
- }
- if(listitem == 10)
- {
- ShowDialog(playerid, 10112);
- }
- if(listitem == 11)
- {
- new string[256];
- format(string, sizeof(string), "~w~You ~b~have ~p~destroy ~y~last ~g~zombie");
- GameTextForPlayer(playerid, string, 5000, 3);
- for (new i=0;i<6;i++)
- {
- DestroyObject(zombie[i]);
- }
- }
- if(listitem == 12)
- {
- ShowDialog(playerid, 10113);
- }
- if(listitem == 13)
- {
- ZombieSMessages();
- }
- }
- }
- if(response)
- {
- if(dialogid == 9992)
- {
- if(listitem == 0)
- {
- ShowDialog(playerid, 7006);
- }
- if(listitem == 1)
- {
- ShowDialog(playerid, 7007);
- }
- if(listitem == 2)
- {
- ShowDialog(playerid, 7008);
- }
- if(listitem == 3)
- {
- ShowDialog(playerid, 7009);
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, COLOR_GREY,"You {3333FF}killed you | YOURSELF | !{663333} You are dead now and not zombie anymore!(Don't abuse that)");
- SetPlayerHealth(playerid, 0);
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- ZombieS[playerid][IsZombieC] = 0;
- ZombieS[playerid][IsZombieK] = 0;
- ZombieS[playerid][IsZombieD] = 0;
- ZombieS[playerid][IsZombieS] = 0;
- }
- }
- }
- if(dialogid == 7001)
- {
- if(response)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW CHAINSAW ZOMBIE * %s * |!{663333} Watch color on map!",PlayerName,GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(strval(inputtext));
- GivePlayerWeapon(strval(inputtext), 9, 999);
- Zombie[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
- SetPlayerHealth(strval(inputtext), 999);
- SetPlayerColor(strval(inputtext), 0xFF6600AA);
- SetPlayerSkin(strval(inputtext), 137);
- Delete3DTextLabel( Knife[ strval(inputtext) ] );
- Delete3DTextLabel( Dildo[ strval(inputtext) ] );
- Delete3DTextLabel( Shovel[ strval(inputtext) ] );
- }
- }
- if(dialogid == 7002)
- {
- if(response)
- {
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- new string[256],PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW KNIFE ZOMBIE * %s * |!{663333} Watch color on map!",PlayerName,GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(strval(inputtext));
- GivePlayerWeapon(strval(inputtext), 4, 10);
- Knife[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
- SetPlayerHealth(strval(inputtext), 999);
- SetPlayerColor(strval(inputtext), 0xAFAFAF00);
- SetPlayerSkin(strval(inputtext), 186);
- Delete3DTextLabel( Zombie[ strval(inputtext) ] );
- Delete3DTextLabel( Dildo[ strval(inputtext) ] );
- Delete3DTextLabel( Shovel[ strval(inputtext) ] );
- }
- }
- if(dialogid == 7003)
- {
- if(response)
- {
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- new string[256];
- format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW DILDO ZOMBIE * %s * |!{663333} Watch color on map!",GetName(playerid),GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(strval(inputtext));
- GivePlayerWeapon(strval(inputtext), 10, 10);
- Dildo[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
- SetPlayerHealth(strval(inputtext), 999);
- SetPlayerColor(strval(inputtext), 0x64000064);
- SetPlayerSkin(strval(inputtext), 199);
- Delete3DTextLabel( Zombie[ strval(inputtext) ] );
- Delete3DTextLabel( Knife[ strval(inputtext) ] );
- Delete3DTextLabel( Shovel[ strval(inputtext) ] );
- }
- }
- if(dialogid == 7004)
- {
- if(response)
- {
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- new string[256],PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW SHOVEL ZOMBIE * %s * |!{663333} Watch color on map!",PlayerName,GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(strval(inputtext));
- GivePlayerWeapon(strval(inputtext), 6, 10);
- Shovel[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
- SetPlayerHealth(strval(inputtext), 999);
- SetPlayerColor(strval(inputtext), 0x9EC73DAA);
- SetPlayerSkin(strval(inputtext), 162);
- Delete3DTextLabel( Zombie[ strval(inputtext) ] );
- Delete3DTextLabel( Knife[ strval(inputtext) ] );
- Delete3DTextLabel( Dildo[ strval(inputtext) ] );
- }
- }
- if(dialogid == 7005)
- {
- if(response)
- {
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- new string[256],PlayerName[MAX_PLAYER_NAME];
- format(string,sizeof(string),"ZombieAdmin %s {3333FF}kill | ZOMBIE * %s * | !{663333} He is dead now!",PlayerName,GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- SetPlayerHealth(strval(inputtext), 0);
- Delete3DTextLabel( Zombie[ strval(inputtext) ] );
- Delete3DTextLabel( Knife[ strval(inputtext) ] );
- Delete3DTextLabel( Dildo[ strval(inputtext) ] );
- Delete3DTextLabel( Shovel[ strval(inputtext) ] );
- }
- }
- if(response)
- {
- if(dialogid == 7006)
- {
- if(listitem == 0)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -750000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- Chainsaw = SetTimer("IsInZombieC", 30000, true );
- ZombieS[playerid][IsZombieC] = 1;
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 1)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -800000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- Chainsaw = SetTimer("IsInZombieC", 60000, true );
- ZombieS[playerid][IsZombieC] = 1;
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 2)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -8500000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- Chainsaw = SetTimer("IsInZombieC", 90000, true );
- ZombieS[playerid][IsZombieC] = 1;
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 3)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -900000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- Chainsaw = SetTimer("IsInZombieC", 120000, true );
- ZombieS[playerid][IsZombieC] = 1;
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 4)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -950000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- Chainsaw = SetTimer("IsInZombieC", 150000, true );
- ZombieS[playerid][IsZombieC] = 1;
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 5)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -1000000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- Chainsaw = SetTimer("IsInZombieC", 180000, true );
- ZombieS[playerid][IsZombieC] = 1;
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- }
- }
- if(response)
- {
- if(dialogid == 7007)
- {
- if(listitem == 0)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -750000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- Knifee = SetTimer("IsInZombieK", 30000, true );
- ZombieS[playerid][IsZombieK] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 1)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -800000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- Knifee = SetTimer("IsInZombieK", 60000, true );
- ZombieS[playerid][IsZombieK] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 2)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -850000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- Knifee = SetTimer("IsInZombieK", 90000, true );
- ZombieS[playerid][IsZombieK] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 3)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -900000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- Knifee = SetTimer("IsInZombieK", 120000, true );
- ZombieS[playerid][IsZombieK] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 4)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -950000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- Knifee = SetTimer("IsInZombieK", 150000, true );
- ZombieS[playerid][IsZombieK] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 5)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -1000000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- Knifee = SetTimer("IsInZombieK", 180000, true );
- ZombieS[playerid][IsZombieK] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- }
- }
- if(response)
- {
- if(dialogid == 7008)
- {
- if(listitem == 0)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -750000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- Dilde = SetTimer("IsInZombieD", 30000, true );
- ZombieS[playerid][IsZombieD] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 1)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -800000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- Dilde = SetTimer("IsInZombieD", 60000, true );
- ZombieS[playerid][IsZombieD] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 2)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -850000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- Dilde = SetTimer("IsInZombieD", 90000, true );
- ZombieS[playerid][IsZombieD] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 3)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -900000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- Dilde = SetTimer("IsInZombieD", 120000, true );
- Dilde = ZombieS[playerid][IsZombieD] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 4)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -950000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- Dilde = SetTimer("IsInZombieD", 150000, true );
- ZombieS[playerid][IsZombieD] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- if(listitem == 5)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -10000000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- Dilde = SetTimer("IsInZombieD", 180000, true );
- ZombieS[playerid][IsZombieD] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Shovel[ playerid ] );
- }
- }
- }
- if(response)
- {
- if(dialogid == 7009)
- {
- if(listitem == 0)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -750000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- Shovele = SetTimer("IsInZombieS", 30000, true );
- ZombieS[playerid][IsZombieS] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- }
- if(listitem == 1)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -800000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- Shovele = SetTimer("IsInZombieS", 60000, true );
- ZombieS[playerid][IsZombieS] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- }
- if(listitem == 2)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -850000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- Shovele = SetTimer("IsInZombieS", 90000, true );
- ZombieS[playerid][IsZombieS] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- }
- if(listitem == 3)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -900000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- Shovele = SetTimer("IsInZombieS", 120000, true );
- ZombieS[playerid][IsZombieS] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- }
- if(listitem == 4)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -950000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- Shovele = SetTimer("IsInZombieS", 150000, true );
- ZombieS[playerid][IsZombieS] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- }
- if(listitem == 5)
- {
- new string[256];
- new PlayerName[MAX_PLAYER_NAME];
- if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
- GivePlayerMoney(playerid, -10000000);
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
- GameTextForAll( string, 5000, 3 );
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- Shovele = SetTimer("IsInZombieS", 180000, true );
- ZombieS[playerid][IsZombieS] = 1;
- Delete3DTextLabel( Zombie[ playerid ] );
- Delete3DTextLabel( Knife[ playerid ] );
- Delete3DTextLabel( Dildo[ playerid ] );
- }
- }
- }
- if(dialogid == 10112)
- {
- if(response)
- {
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- new string[256];
- format(string, sizeof(string), "~w~Zombie ~p~follow you. Zombie moved by %s .",GetName(playerid));
- GameTextForPlayer(strval(inputtext), string, 5000, 3);
- SendClientMessage(playerid, COLOR_GREY, "{3333FF}Zombie{663333} follow now some other guy !");
- if (IsValidObject(zombie[4]))
- {
- if (TimerAtaca!=-1)
- {
- KillTimer(TimerAtaca);
- }
- TimerAtaca=SetTimerEx("zombieAtaca1",ZTimerSpeed,1,"i",strval(inputtext));
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombie");
- }
- }
- }
- if(dialogid == 10113)
- {
- new string[256];
- new ime[20];
- GetPlayerName(playerid, ime, sizeof(ime));
- if(response)
- {
- if(RandomMess == true)
- {
- format(string, sizeof(string), "Random Zombie Messages turned off by a ZombieAdmin:{9933CC} %s", ime);
- SendClientMessageToAll(0xFF8000FF, string);
- RandomMess = false;
- }
- }
- if(!response)
- {
- if(RandomMess == false)
- {
- format(string, sizeof(string), "Random Zombie Messages turned on by a ZombieAdmin:{9933CC} %s", ime);
- SendClientMessageToAll(0xFF8000FF, string);
- RandomMess = true;
- }
- }
- }
- if(dialogid == 10114)
- {
- if(response)
- {
- ShowDialog(playerid, 10115);
- }
- if(!response)
- {
- ShowDialog(playerid, 10116);
- }
- }
- if(dialogid == 10115)
- {
- if(response)
- {
- new level;
- new str[256],str2[512];
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- ZombieS[strval(inputtext)][Level] = 0;
- dini_IntSet(playerfile,"Level",level);
- format(str,sizeof(str),"{33CC00}* You have take{990000} %s's {33CC00}ZombieAdmin status !",GetName(strval(inputtext)));
- SendClientMessage(playerid,COLOR_BLUE,str);
- format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has take *{990000} %s {9933CC}* ZombieAdmin Status !",GetName(playerid),GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_BLUE,str2);
- format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has take your ZombieAdmin Status !",GetName(playerid));
- SendClientMessage(strval(inputtext),COLOR_BLUE,str2);
- }
- }
- if(dialogid == 10116)
- {
- if(response)
- {
- new level;
- new str[256],str2[512];
- if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
- if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
- if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
- if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
- ZombieS[strval(inputtext)][Level] = 1;
- dini_IntSet(playerfile,"Level",level);
- format(str,sizeof(str),"{33CC00}* You have make{990000} %s's {33CC00}to ZombieAdmin !",GetName(strval(inputtext)));
- SendClientMessage(playerid,COLOR_BLUE,str);
- format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has make *{990000} %s {9933CC}* to ZombieAdmin !",GetName(playerid),GetName(strval(inputtext)));
- SendClientMessageToAll(COLOR_BLUE,str2);
- format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has make you ZombieAdmin !",GetName(playerid));
- SendClientMessage(strval(inputtext),COLOR_BLUE,str2);
- }
- }
- return 0;
- }
- //=======================================================
- stock ShowDialog(playerid, dialog)
- {
- new string[512];
- switch(dialog)
- {
- case 75: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"Login Account",string,"Login","Quit");
- case 74: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"Register Account",string,"Register","Quit");
- case 7001: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be chainsaw zombie !","Make","Exit");
- case 7002: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be knife zombie !","Make","Exit");
- case 7003: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be dildo zombie !","Make","Exit");
- case 7004: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be shovel zombie !","Make","Exit");
- case 7005: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to kill zombie !","Kill","Exit");
- case 7006: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
- case 7007: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
- case 7008: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
- case 7009: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
- case 9991: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}Z{00FF66}ombies", "Make/Take ZombieAdmin\n{6600CC}Zombie With Chainsaw\n{990033}Zombie With Knife\n{339933}Zombie With Dildo\nZombie With Shovel\n{FFCC33}Kill Zombie\n{6600CC}Make Zombie\n{990033}Zombie Follow You\n{339933}Stop Zombie\n{FFCC33}Zombie Watch You\n{CC66CC}Zombie Follow Some Other Guy\nCleanLastZombie\n{FF6600}RandomMessage\n{FFCC33}ShowMessage","Next", "Cancel");
- case 9992: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}Z{00FF66}ombie {003399}S{00FF66}hop", "{6600CC}Be Zombie With Chainsaw \n{990033}Be Zombie With Knife \n{339933}Be Zombie With Dildo \n{FF6600}Be Zombie With Shovel \n{FFCC33}Be Back Normal","Next", "Cancel");
- case 10111: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be zombie \n{339933}After that come list, where you\n{FFCC33}CHOOSE ZOMBIE NAME !. ","Next","Exit");
- case 10112: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be zombie follow !. ","Follow","Exit");
- case 10113: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_MSGBOX, "{FF0000}Random Zombie Messages","{FF6600}You wan't to turn zombie random messages {6600CC}off{33CC00}/{00FFFF}on{FF6600} ?\n {00FFFF} Choose answer !","Off","On");
- case 10114: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_MSGBOX, "{003399}Z{00FF66}ombie Admin Level","{FF6600}You wan't to {6600CC}take{33CC00} someone ZombieAdmin Status ?\n{FF6600}Wan't to {6600CC}make{33CC00} someone to ZombieAdmin ?","Take","Make");
- case 10115: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to take him ZombieAdmin Status !","Take","Exit");
- case 10116: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to make ZombieAdmin !","Make","Exit");
- }
- return 0;
- }
- //==========================================PUBLICS AND OTHER STUFF=============
- //========================PUBLICS AND OTHER STUFF===============================
- CrearZombie(Float:pX,Float:pY,Float:pZ,Float:angle)
- {
- new Float:PEPE = floatsin((angle*3.14159/180.0));
- new Float:PIPO = floatcos((angle*3.14159/180.0));
- for (new i=0;i<6;i++)
- {
- zombie[i]=CreateObject(z1[i][partModel],pX+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],pY+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],pZ+z1[i][RelZ],z1[i][RelrX],z1[i][RelrY],angle);
- }
- return zombie[4];
- }
- //==============================================================================
- ZombieLookPlayer(playerid)
- {
- new Float:pX,Float:pY,Float:pZ,Float:angle;
- GetPlayerPos(playerid,pX,pY,pZ);
- GetObjectPos(zombie[4],X,Y,Z);
- angle = 180.0-atan2(X-pX,Y-pY);
- printf("%f",angle);
- for (new i=0;i<6;i++)
- {
- DestroyObject(zombie[i]);
- }
- new Float:ran = float(random(6))-3.0;
- CrearZombie(X,Y,Z,angle+ran);
- return zombie[4];
- }
- //==============================================================================
- public zombieAtaca(playerid)
- {
- new Float:pX,Float:pY,Float:pZ,Float:angle;
- GetPlayerPos(playerid,pX,pY,pZ);
- GetObjectPos(zombie[4],X,Y,Z);
- angle = 180.0-atan2(X-pX,Y-pY);
- new Float:ran = float(random(vaiven)-vaiven/2);
- angle=angle+ran;
- new Float:PEPE = floatsin((angle*3.14159/180.0));
- new Float:PIPO = floatcos((angle*3.14159/180.0));
- for (new i=0;i<6;i++)
- {
- DestroyObject(zombie[i]);
- zombie[i]=CreateObject(z1[i][partModel],X+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],Y+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],Z+z1[i][RelZ],z1[i][RelrX],z1[i][RelrY],angle);
- }
- for (new i=0;i<6;i++)
- {
- MoveObject(zombie[i],pX+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],pY+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],pZ+z1[i][RelZ]+0.7,Zspeed);
- }
- return 1;
- }
- //==============================================================================
- public zombieAtaca1(playerid)
- {
- new Float:pX,Float:pY,Float:pZ,Float:angle;
- GetPlayerPos(playerid,pX,pY,pZ);
- GetObjectPos(zombie[4],X,Y,Z);
- angle = 180.0-atan2(X-pX,Y-pY);
- new Float:ran = float(random(vaiven)-vaiven/2);
- angle=angle+ran;
- new Float:PEPE = floatsin((angle*3.14159/180.0));
- new Float:PIPO = floatcos((angle*3.14159/180.0));
- for (new i=0;i<6;i++)
- {
- DestroyObject(zombie[i]);
- zombie[i]=CreateObject(z1[i][partModel],X+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],Y+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],Z+z1[i][RelZ],z1[i][RelrX],z1[i][RelrY],angle);
- }
- for (new i=0;i<6;i++)
- {
- MoveObject(zombie[i],pX+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],pY+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],pZ+z1[i][RelZ]+0.7,Zspeed);
- }
- return 1;
- }
- //==============================================================================
- public IsInZombieC(playerid)
- {
- ZombieS[playerid][IsZombieC] = 0;
- SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
- SetPlayerHealth(playerid, 0);
- KillTimer(Chainsaw);
- return 1;
- }
- //==============================================================================
- public IsInZombieK(playerid)
- {
- ZombieS[playerid][IsZombieK] = 0;
- SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
- SetPlayerHealth(playerid, 0);
- KillTimer(Knifee);
- return 1;
- }
- //==============================================================================
- public IsInZombieD(playerid)
- {
- ZombieS[playerid][IsZombieD] = 0;
- SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
- SetPlayerHealth(playerid, 0);
- KillTimer(Dilde);
- return 1;
- }
- //==============================================================================
- public IsInZombieS(playerid)
- {
- ZombieS[playerid][IsZombieS] = 0;
- SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
- SetPlayerHealth(playerid, 0);
- KillTimer(Shovele);
- return 1;
- }
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- ZombieS[playerid][Logged] = 0;
- ZombieS[playerid][Registered] = 0;
- ZombieS[playerid][Level] = 0;
- ZombieS[playerid][IsZombieC] = 0;
- ZombieS[playerid][IsZombieK] = 0;
- ZombieS[playerid][IsZombieD] = 0;
- ZombieS[playerid][IsZombieS] = 0;
- new gsendid;
- new shovel;
- new dildo;
- new knife;
- Delete3DTextLabel( Zombie[ gsendid ] );
- Delete3DTextLabel( Knife[ knife ] );
- Delete3DTextLabel( Dildo[ dildo ] );
- Delete3DTextLabel( Shovel[ shovel ] );
- new PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(playerfile,sizeof(playerfile),"Zombiefs/ZombieS/%s.ini",PlayerName);
- return 1;
- }
- //==============================================================================
- public OnPlayerDisconnect(playerid, reason)
- {
- new PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
- format(playerfile,sizeof(playerfile),"Zombiefs/ZombieS/%s.ini",PlayerName);
- ZombieS[playerid][Logged] = 0;
- dini_IntSet(playerfile,"Logged",0);
- dini_IntSet(playerfile,"Level", ZombieS[playerid][Level]);
- dini_IntSet(playerfile, "IsZombieC", ZombieS[playerid][IsZombieC]);
- dini_IntSet(playerfile, "IsZombieK", ZombieS[playerid][IsZombieK]);
- dini_IntSet(playerfile, "IsZombieD", ZombieS[playerid][IsZombieD]);
- dini_IntSet(playerfile, "IsZombieS", ZombieS[playerid][IsZombieS]);
- KillTimer(Chainsaw);
- KillTimer(Knifee);
- KillTimer(Dilde);
- KillTimer(Shovele);
- return 1;
- }
- //==============================================================================
- public OnPlayerSpawn(playerid)
- {
- if(ZombieS[playerid][Registered] == 1 && ZombieS[playerid][Logged] == 0)
- {
- return 1;
- }
- return 1;
- }
- //==============================================================================
- public ZombieSMessages()
- {
- if(RandomMess == true)
- {
- new string[128];
- new mess = random(sizeof(ZombieMessages));
- format(string, sizeof(string), "{FF6600}[Zombie News]: %s", ZombieMessages[mess]);
- SetTimer("ZombieMessages", 3000, 0);
- SendClientMessageToAll(0xFFFF00AA, string);
- }
- return 1;
- }
- //==============================================================================
- stock GetName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- if(IsPlayerConnected(playerid))
- {
- GetPlayerName(playerid, name, sizeof(name));
- }
- else
- {
- name = "Unknown";
- }
- return name;
- }
- //==============================================================================
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(ZombieS[playerid][IsZombieC] == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 999);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xFF6600AA);
- SetPlayerSkin(playerid, 137);
- }
- if(ZombieS[playerid][IsZombieK] == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 10);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0xAFAFAF00);
- SetPlayerSkin(playerid, 186);
- }
- if(ZombieS[playerid][IsZombieD] == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 10, 10);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x64000064);
- SetPlayerSkin(playerid, 199);
- }
- if(ZombieS[playerid][IsZombieS] == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 10);
- SetPlayerHealth(playerid, 999);
- SetPlayerColor(playerid, 0x9EC73DAA);
- SetPlayerSkin(playerid, 162);
- }
- return 1;
- }
- //==============================================================================
- //=============================[ End of the all ]===============================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement