Advertisement
Guest User

Untitled

a guest
May 25th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.03 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. new ZombieZone;
  8.  
  9. #define COLOR_BLUE 0x0005FFFF
  10. #define COLOR_RED 0xE10000FF
  11. #define COLOR_GREEN 0x00FF0AFF
  12. #define COLOR_YELLOW 0xEBFF00FF
  13. #define COLOR_LILA 0x9600FFFF
  14. #define COLOR_BROWN 0x6F3E00FF
  15. #define COLOR_BLACK 0x141414FF
  16. #define COLOR_WHITE 0xFAFAFAFF
  17. #define COLOR_ORANGE 0xF8C00FF
  18. #define COLOR_TÜRKIS 0x00FFC8FF
  19. #define COLOR_DARKGREY 0x505050FF
  20. #define COLOR_GREY 0x8C8C8CFF
  21. #define COLOR_LIGHTBLUE 0x00A5FFFF
  22. #define COLOR_PINK 0xFF0087FF
  23.  
  24. public OnGameModeInit()
  25. {
  26.     ZombieZone = GangZoneCreate(-2819.574218, 27.057357, -2691.574218, 299.057373);
  27.     SetGameModeText("Blank Script");
  28.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  29.     return 1;
  30. }
  31.  
  32.  
  33. public OnGameModeExit()
  34. {
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerRequestClass(playerid, classid)
  39. {
  40.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  41.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  42.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  43.     return 1;
  44. }
  45.  
  46.  
  47. public OnPlayerCommandText(playerid, cmdtext[])
  48. {
  49.     if (strcmp("/makeadmin", cmdtext, true, 10) == 0)
  50.     {
  51.         if(!GetPVarInt(playerid, "BeAdmin"))
  52.         {
  53.             SendClientMessage(playerid, COLOR_BLUE, "Du hast dich zum Administrator gemacht.");
  54.             SetPVarInt(playerid, "BeAdmin", 1);
  55.         }
  56.         else
  57.         {
  58.             SendClientMessage(playerid, COLOR_BLUE, "Du hast dich zum normalen User gemacht.");
  59.             SetPVarInt(playerid, "BeAdmin", 0);
  60.         }
  61.         return 1;
  62.     }
  63.  
  64.     if (strcmp("/aond", cmdtext, true, 10) == 0)
  65.     {
  66.         if(GetPVarInt(playerid, "BeAdmin"))
  67.         if(!GetPVarInt(playerid, "AOND"))
  68.         {
  69.             SendClientMessage(playerid, COLOR_WHITE, "Du bist im Admindienst.");
  70.             SetPVarInt(playerid, "AOND", 1);
  71.         }
  72.         else
  73.         {
  74.             SendClientMessage(playerid, COLOR_WHITE, "Du bist nicht mehr im Admindienst.");
  75.             SetPVarInt(playerid, "AOND", 0);
  76.         }
  77.         return 1;
  78.     }
  79.    
  80.     if (strcmp("/hilfe", cmdtext, true, 10) == 0)
  81.     {
  82.         if(GetPVarInt(playerid, "AOND"))
  83.         {
  84.             SendClientMessage(playerid, COLOR_DARKGREY, "_____________________________________");
  85.             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Befehle:                             ");
  86.             SendClientMessage(playerid, COLOR_LIGHTBLUE, "/zombiemod - Zombiemod wird aktiviert");
  87.             SendClientMessage(playerid, COLOR_DARKGREY, "_____________________________________");
  88.         }
  89.         return 1;
  90.     }
  91.    
  92.     if (strcmp("/zombiemod", cmdtext, true, 10) == 0)
  93.     {
  94.         if(GetPVarInt(playerid, "AOND"))
  95.         if(!GetPVarInt(playerid, "ZombieMod"))
  96.         {
  97.             SendClientMessage(playerid, COLOR_LILA, "Der ZombieMod wurde aktiviert.");
  98.             GangZoneShowForAll(ZombieZone, 149);
  99.             SetPVarInt(playerid, "ZombieMod", 1);
  100.         }
  101.         else
  102.         {
  103.             SendClientMessage(playerid, COLOR_LILA, "Der ZombieMod wurde deaktiviert.");
  104.             SetPVarInt(playerid, "ZombieMod", 0);
  105.         }
  106.         return 1;
  107.     }
  108.     if (strcmp("/gotozm", cmdtext, true, 10) == 0)
  109.     {
  110.         if(GetPVarInt(playerid, "AOND"))
  111.         {
  112.             SendClientMessage(playerid, COLOR_LILA, "Du bist nun in der Nähe der Zombiezone.");
  113.             SetPlayerPos(playerid ,-2841.8574,157.4304,13.5794);
  114.         }
  115.         else
  116.         {
  117.             SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Admindienst.");
  118.         }
  119.         return 1;
  120.     }
  121.     return 0;
  122. }
  123.  
  124. stock IsInGangZone(playerid, ganzoneid)
  125. {
  126.     new Float:SpielerPosition[3];
  127.             {
  128.         GetPlayerPos(playerid,SpielerPosition[0],SpielerPosition[1],SpielerPosition[2])
  129.         if(SpielerPosition[0] > -2819.574218[ZombieZone] && SpielerPosition[0] < -2691.574218[ZombieZone] && SpielerPosition[1] > 27.057357[ZombieZone] && SpielerPosition[1] < 299.057373[ZombieZone]);
  130.         if(IsInGangZone(playerid, ZombieZone))
  131.         if(GangZoneShowForAll(ZombieZone, 149))
  132.         }
  133.             {
  134.             SetTimer("ZombieZoneTime", 1000, false);
  135.             SetPlayerDrunkLevel(playerid, 50000);
  136.             SendClientMessage(playerid, COLOR_RED, "Du befindest dich nun im verseuchten Gebiet.");
  137.         }
  138.     return 1;
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement