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>
- new ZombieZone;
- #define COLOR_BLUE 0x0005FFFF
- #define COLOR_RED 0xE10000FF
- #define COLOR_GREEN 0x00FF0AFF
- #define COLOR_YELLOW 0xEBFF00FF
- #define COLOR_LILA 0x9600FFFF
- #define COLOR_BROWN 0x6F3E00FF
- #define COLOR_BLACK 0x141414FF
- #define COLOR_WHITE 0xFAFAFAFF
- #define COLOR_ORANGE 0xF8C00FF
- #define COLOR_TÜRKIS 0x00FFC8FF
- #define COLOR_DARKGREY 0x505050FF
- #define COLOR_GREY 0x8C8C8CFF
- #define COLOR_LIGHTBLUE 0x00A5FFFF
- #define COLOR_PINK 0xFF0087FF
- public OnGameModeInit()
- {
- ZombieZone = GangZoneCreate(-2819.574218, 27.057357, -2691.574218, 299.057373);
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/makeadmin", cmdtext, true, 10) == 0)
- {
- if(!GetPVarInt(playerid, "BeAdmin"))
- {
- SendClientMessage(playerid, COLOR_BLUE, "Du hast dich zum Administrator gemacht.");
- SetPVarInt(playerid, "BeAdmin", 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_BLUE, "Du hast dich zum normalen User gemacht.");
- SetPVarInt(playerid, "BeAdmin", 0);
- }
- return 1;
- }
- if (strcmp("/aond", cmdtext, true, 10) == 0)
- {
- if(GetPVarInt(playerid, "BeAdmin"))
- if(!GetPVarInt(playerid, "AOND"))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Du bist im Admindienst.");
- SetPVarInt(playerid, "AOND", 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Du bist nicht mehr im Admindienst.");
- SetPVarInt(playerid, "AOND", 0);
- }
- return 1;
- }
- if (strcmp("/hilfe", cmdtext, true, 10) == 0)
- {
- if(GetPVarInt(playerid, "AOND"))
- {
- SendClientMessage(playerid, COLOR_DARKGREY, "_____________________________________");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Befehle: ");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/zombiemod - Zombiemod wird aktiviert");
- SendClientMessage(playerid, COLOR_DARKGREY, "_____________________________________");
- }
- return 1;
- }
- if (strcmp("/zombiemod", cmdtext, true, 10) == 0)
- {
- if(GetPVarInt(playerid, "AOND"))
- if(!GetPVarInt(playerid, "ZombieMod"))
- {
- SendClientMessage(playerid, COLOR_LILA, "Der ZombieMod wurde aktiviert.");
- GangZoneShowForAll(ZombieZone, 149);
- SetPVarInt(playerid, "ZombieMod", 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LILA, "Der ZombieMod wurde deaktiviert.");
- SetPVarInt(playerid, "ZombieMod", 0);
- }
- return 1;
- }
- if (strcmp("/gotozm", cmdtext, true, 10) == 0)
- {
- if(GetPVarInt(playerid, "AOND"))
- {
- SendClientMessage(playerid, COLOR_LILA, "Du bist nun in der Nähe der Zombiezone.");
- SetPlayerPos(playerid ,-2841.8574,157.4304,13.5794);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Admindienst.");
- }
- return 1;
- }
- return 0;
- }
- stock IsInGangZone(playerid, ganzoneid)
- {
- new Float:SpielerPosition[3];
- {
- GetPlayerPos(playerid,SpielerPosition[0],SpielerPosition[1],SpielerPosition[2])
- if(SpielerPosition[0] > -2819.574218[ZombieZone] && SpielerPosition[0] < -2691.574218[ZombieZone] && SpielerPosition[1] > 27.057357[ZombieZone] && SpielerPosition[1] < 299.057373[ZombieZone]);
- if(IsInGangZone(playerid, ZombieZone))
- if(GangZoneShowForAll(ZombieZone, 149))
- }
- {
- SetTimer("ZombieZoneTime", 1000, false);
- SetPlayerDrunkLevel(playerid, 50000);
- SendClientMessage(playerid, COLOR_RED, "Du befindest dich nun im verseuchten Gebiet.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement