22.05.2014, 16:52
Here's everything leading up that point.
PHP код:
native WP_Hash(buffer[], len, const str[]);
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <a_mysql>
#include <foreach>
#include <YSI\y_ini>
#include <KickBan>
//#include <OPA>
/*Clans For server
To Change Clan Name Just replace [MN] With [Anyname] or (Anyname) ,etc
*/
#define DIALOGCLAN 1000
#define TAGCLAN "[FOS]"
#define PASSWORDCLAN "fos...01"
// Defines
#define function%0(%1) forward%0(%1);public%0(%1)
#define NON_IMMUNE 69,14,261,2,107,11,125,6,299,43,124,12,13,280,230,274,27,25,95,260,149,29,161,76,23,115,287,67,200
#define MAX_MAPTIME 250
#define MAX_RESTART_TIME 10000
#define MAX_MAPUPDATE_TIME 1450
#define MAX_SHOW_CP_TIME 1000
#define MAX_END_TIME 60000
#define MAX_BALANCERUPDATE_TIME 6000
#define MAX_MAP_FILES 19
#define SCM SendClientMessage
#define SCMTA SendClientMessageToAll
///Here is your mysql DUMP
#define SQL_HOST "_____"
#define SQL_USER "_____"
#define SQL_PASS "_____"
#define SQL_DB "_____"
#define Grey 0xC0C0C0FF // Defining the color 'Grey'
// Reaction Test Script
#define Loop(%0,%1) for(new %0 = 0; %0 != %1; %0++)
#define PURPLE 0xAFAFAFAA // Don't care this is Grey
#define GREEN 0x33CCFFAA // Don't care this is Light Blue
#define TIME 180000 //180000
// Reaction Test Script
new String[128], Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
new IsSpecing[MAX_PLAYERS], Name[MAX_PLAYER_NAME], IsBeingSpeced[MAX_PLAYERS],spectatorid[MAX_PLAYERS];
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define PATH "/ZMA/Users/%s.ini"
#define NAME "Infestation [Zombie Survival] [BETA]"
#define SCRIPT "v0.3"
#define SCRIPTER "Stones"
#define SITE "COMING SOON"
#define chat "{FFFFFF}»"
#define PLAYER_MUTE_TIME_MINUTES (2)
#define DIALOG_REGISTER 0
#define DIALOG_LOGIN 1
#define DIALOG_RADIO 2
#define DIALOG_KICK 3
#define DIALOG_TOP 4
#define DIALOG_WARN 5
#define DIALOG_BANNED 6
#define DIALOG_CMDS 7
#define DIALOG_HELP 8
#define DIALOG_HOWTOXP 9
#define DIALOG_ACMDS 10
#define DIALOG_RULES 11
#define DIALOG_CLASS 12
#define DIALOG_CLASS2 13
#define DIALOG_CLASS_2 14
#define DIALOG_CLASS_2_2 15
#define DIALOG_CLASS_3 16
#define DIALOG_CLASS_3_3 17
#define DIALOG_ADMINS 18
#define DIALOG_VIPS 19
#define DIALOG_REPORT 20
#define DIALOG_REPORT_2 21
#define DIALOG_SHOUT 22
#define DIALOG_VIPINFO 23
#define DIALOG_VIP 24
#define DIALOG_VIP_CLASS 25
#define DIALOG_COINS 26
#define DIALOG_BUY_WEAPONS 27
#define DIALOG_BUY_CLASSES 28
#define DIALOG_XP 30
#define DIALOG_RADIO_1 31
#define TEAM_ZOMBIE 0
#define TEAM_HUMAN 1
#define ENDCHAT_01 0
#define COLOR_HUMAN 0x33CCFFAA
#define COLOR_ZOMBIE 0x9ACD3244
#define COLOR_ADUTY 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define ROSA 0xFF66FFAA
#define BLU_CHIARO 0x00BFFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_LIME 0x10F441AA
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_NAVY 0x000080AA
#define COLOR_AQUA 0xFF000000
#define COLOR_CRIMSON 0xDC143CAA
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_BISQUE 0xFFE4C4AA
#define COLOR_BLACK 0x000000AA
#define COLOR_CHARTREUSE 0x7FFF00AA
#define COLOR_BROWN 0xA52A2AAA
#define COLOR_CORAL 0xFF7F50AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_GREENYELLOW 0xADFF2FAA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_IVORY 0xFFFF82AA
#define COLOR_LAWNGREEN 0x7CFC00AA
#define COLOR_SEAGREEN 0x20B2AAAA
#define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
#define COLOR_MIDNIGHTBLUE 0X191970AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OLIVE 0x808000AA
#define COLOR_ORANGERED 0xFF4500AA
#define COLOR_PINK 0xFFC0CBAA // - Light light pink
#define COLOR_SPRINGGREEN 0x00FF7FAA
#define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
#define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
#define COLOR_MEDIUMAQUA 0x83BFBFAA
#define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
// Human Classes
#define CIVILIAN 1501
#define POLICEMAN 1502
#define MEDIC 1503
#define SCOUT 1504
#define HEAVYMEDIC 1505
#define FARMER 1506
#define ENGINEER 1507
#define SWAT 1508
#define HEAVYSHOTGUN 1509
#define ADVANCEDMEDIC 1510
#define ADVANCEDENGINEER 1511
#define FEDERALAGENT 1512
#define KICKBACK 1513
#define ADVANCEDSCOUT 1514
#define COWBOY 1515
#define ASSASSIN 1516
#define TRAPMASTER 1517
#define VIPENGINEER 1518
#define VIPMEDIC 1519
#define VIPSCOUT 1520
#define E_ENGINEER 1521
#define SOLDIER 1522
#define DOCTOR 1523
#define FBI 1524
#define SCIENTIST 1525
#define EXPERIENCEDSCOUT 1526
#define PIMP 1527
#define WEAPONSDEALER 1528
#define SMOKEUP 1529
#define SHOTGUNSPECIAL 1530
#define BOXER 1231
#define BOMBER 1232
#define MASTER 1233
#define GHOST 1234
#define BUDDY 1235
#define AKICK 1236
#define TECG 1237
#define BULL 1238
#define HITMAN 1239
// Zombie Classes
#define STANDARDZOMBIE 2501
#define MUTATEDZOMBIE 2502
#define FASTZOMBIE 2503
#define REAPERZOMBIE 2504
#define WITCHZOMBIE 2505
#define BOOMERZOMBIE 2506
#define STOMPERZOMBIE 2507
#define SCREAMERZOMBIE 2508
#define FIREBREATHER 2509
#define ADVANCEDMUTATED 2510
#define HEAVYSCREAMER 2511
#define FLESHEATER 2512
#define ADVANCEDWITCH 2513
#define ADVANCEDBOOMER 2514
#define NEMESIS 2515
#define ADVSTOMPER 2516
#define ADVSCREAMER 2517
#define HZOMBIE 2518
#define SLENDER 2519
#define KZOM 2520
#define GZOM 2521
#define DSNIPE 2522
#define COL_WHITE "{FFFFFF}"
#define COL_GREY "{C3C3C3}"
#define COL_GREEN "{37DB45}"
#define COL_RED "{FF3333}"
#define COL_YELLOW "{F3FF02}"
#define COL_ORANGE "{F9B857}"
#define COL_BLUE "{0049FF}"
#define COL_PINK "{FF00EA}"
#define COL_LIGHTBLUE "{00C0FF}"
#define COL_LGREEN "{C9FFAB}"
forward NoSpawnKill(playerid);
// Variables
new time;
new mapvar;
new balvar;
new mapid;
new gateobj;
new playerOnline;
new playersAliveCount;
new DocShield;
new Trap;
new meatDrops[MAX_PLAYERS];
new ammoDrops[MAX_PLAYERS];
new LastMapStarted = -1;
new PlayerPressedJump[MAX_PLAYERS];
new playedtimer[MAX_PLAYERS];
new team[MAX_PLAYERS];
new c4Obj[MAX_PLAYERS];
new smokemachine[MAX_PLAYERS];
new PlayerShotPlayer[MAX_PLAYERS][MAX_PLAYERS];
new Text:EventText;
new Text:CurrentMap;
new Text:remadeText;
new Text:remadeText2;
new Text:AliveInfo;
new Text:ChatMsg;
new Text:TimeLeft;
new Text:UntilRescue;
new Text:XP;
new Text:Infected[MAX_PLAYERS];
new Text:iKilled[MAX_PLAYERS];
new Text:myXP[MAX_PLAYERS];
new Text:ServerIntroOne[MAX_PLAYERS];
new Text:ServerIntroTwo[MAX_PLAYERS];
new shoutstring[256];
enum mapinfo
{
MapName[128],
FSMapName[128],
Float:HumanSpawnX,
Float:HumanSpawnY,
Float:HumanSpawnZ,
Float:HumanSpawn2X,
Float:HumanSpawn2Y,
Float:HumanSpawn2Z,
Float:ZombieSpawnX,
Float:ZombieSpawnY,
Float:ZombieSpawnZ,
Float:GateX,
Float:GateY,
Float:GateZ,
Float:GaterX,
Float:GaterY,
Float:GaterZ,
Float:CPx,
Float:CPy,
Float:CPz,
GateID,
MoveGate,
AllowWater,
Interior,
Weather,
Time,
EvacType,
IsStarted,
XPType,
};
new Map[mapinfo];
enum playerinfo
{
pPassword[129],
pXP,
ReadCmds,
pKills,
pDeaths,
pRank,
pEvac,
pAdminLevel,
pAdminDuty,
pBanned,
gLeader,
gMember,
pVipLevel,
pHour,
pMin,
pSec,
pMapsPlayed,
pCoins,
pLogged,
pWarnings,
FirstPS,
pPM,
IsPlayerMuted,
Killstreak,
pHumanClass,
pZombieClass,
IsPlayerInfected,
IsPlayerInfectedTimer,
Boxes,
BoxesAdvanced,
SkinChanges,
ArmourChanges,
C4,
traps,
pVipKickBack,
pVipFlash,
pVipBoxes,
pLadders,
pFakeKills,
pAmmoBoxes,
pKickBackCoin,
pDamageShotgunCoin,
pDamageDeagleCoin,
pDamageMP5Coin,
pDoctorShield,
pRenamed,
pTrapMasterTrap,
pScientistCure,
Frozen
};
new pInfo[MAX_PLAYERS][playerinfo];
enum aname
{
HighJumpScout,
HighJumpZombie,
StomperPushing,
WitchAttack,
ScreamerZombieAb,
ScreamerZombieAb2,
InfectionNormal,
InfectionMutated,
ShoutCooldown,
HealCoolDown,
FireBreatherCooldown,
NemesisCooldown,
AdvancedMutatedCooldown,
WitchAttack2,
InfectionFleshEater
}
new Abilitys[MAX_PLAYERS][aname];
new randomMessages[][] =
{
""chat""COL_RED" [BOT] "COL_WHITE"Earn XP by killing the enemy team or using your ability and donating for double XP!",
""chat""COL_GREEN" [BOT] "COL_WHITE"Are you new to the server? use /help and /cmds to get you started",
""chat""COL_BLUE" [BOT] "COL_WHITE"Got stuck?, try using /rbug",
""chat""COL_RED" [BOT] "COL_WHITE"If you spot a hacker or rulebreak report him/her with the format [ /report [id/name] [Reason]",
""chat""COL_ORANGE" [BOT] "COL_WHITE"Remember to read the server rules to prevent you from getting banned /rules",
""chat""COL_BLUE" [BOT] "COL_WHITE"We strongly suggest you use /ss to save your stats",
""chat""COL_BLUE" [BOT] "COL_WHITE"Got stuck?, try using /rbug",
""chat""COL_RED" [BOT] "COL_WHITE"Do NOT attack your team mates or you will be punished!",
""chat""COL_RED" [BOT] "COL_WHITE"If you spot a hacker or rulebreak report him/her with the format [ /report [id/name] [Reason]",
""chat""COL_RED" [BOT] "COL_WHITE"Wanna know whats new? Why not? Try out /updates",
""chat""COL_BLUE" [BOT] "COL_WHITE"Always respect your fellow players, if issues arrise, report them to stones, or on the forums [COMING SOON]",
""chat""COL_RED" [BOT] "COL_WHITE"Need help? Try out /help",
""chat""COL_ORANGE" [BOT] "COL_WHITE"If you find a bug please report it on our forum "COL_ORANGE" COMING SOON",
""chat""COL_LGREEN" [BOT] "COL_WHITE"You can buy weapons, classes, objects,etc "COL_WHITE" ' /buy ' command",
""chat""COL_YELLOW" [BOT] "COL_WHITE"We did an aditional class menu "COL_WHITE" ' /class2 ' "COL_WHITE" make sure you check it out!",
""chat""COL_RED" [BOT] "COL_WHITE"Do NOT spawn kill zombies, else you will be punished and even banned if you keep doing it!",
""chat""COL_BLUE" [BOT] "COL_WHITE"Earn xp and unlock new classes. Try out "COL_RED" 'class2!!'"
}
forward load_Map_basic(Mapid, name[], value[]);
forward LoadUser_data(playerid, name[],value[]);
forward TimeOnServer(playerid);
forward Float:GetDistanceBetweenPlayers(p1,p2);
forward GetClosestPlayer(p1);
forward RandomZombie();
main()
{