Guest User

Untitled

a guest
Jul 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.44 KB | None | 0 0
  1. if(GetPVarInt(ap, "IsInDM") == 1)
  2.                 {
  3.                     if(LSBeachDM == 1 && DMHasStarted != 0)
  4.                     {
  5.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  6.                         GetPlayerName(ap, winnername, sizeof(winnername));
  7.                         format(string, sizeof(string), "Deathmatch: Los Santos Beach has ended and %s is the winner!", winnername);
  8.                         SendClientMessageToAll(COLOR_GREEN, string);
  9.                     }
  10.                     else if(GolfDM == 1 && DMHasStarted != 0)
  11.                     {
  12.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  13.                         GetPlayerName(ap, winnername, sizeof(winnername));
  14.                         format(string, sizeof(string), "Deathmatch: Golf Course has ended and %s is the winner!", winnername);
  15.                         SendClientMessageToAll(COLOR_GREEN, string);
  16.                     }
  17.                     else if(JetpackDM == 1 && DMHasStarted != 0)
  18.                     {
  19.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  20.                         GetPlayerName(ap, winnername, sizeof(winnername));
  21.                         format(string, sizeof(string), "Deathmatch: Jetpack Battle has ended and %s is the winner!", winnername);
  22.                         SendClientMessageToAll(COLOR_GREEN, string);
  23.                     }
  24.                     else if(HunterDM == 1 && DMHasStarted != 0)
  25.                     {
  26.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  27.                         GetPlayerName(ap, winnername, sizeof(winnername));
  28.                         format(string, sizeof(string), "Deathmatch: Hunter Dogfight has ended and %s is the winner!", winnername);
  29.                         SendClientMessageToAll(COLOR_GREEN, string);
  30.                     }
  31.                     else if(FarmDM == 1 && DMHasStarted != 0)
  32.                     {
  33.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  34.                         GetPlayerName(ap, winnername, sizeof(winnername));
  35.                         format(string, sizeof(string), "Deathmatch: Hell Farm has ended and %s is the winner!", winnername);
  36.                         SendClientMessageToAll(COLOR_GREEN, string);
  37.                     }
  38.                     else if(FightDM == 1 && DMHasStarted != 0)
  39.                     {
  40.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  41.                         GetPlayerName(ap, winnername, sizeof(winnername));
  42.                         format(string, sizeof(string), "Deathmatch: Fighting Arena has ended and %s is the winner!", winnername);
  43.                         SendClientMessageToAll(COLOR_GREEN, string);
  44.                     }
  45.                     else if(GrenadeDM == 1 && DMHasStarted != 0)
  46.                     {
  47.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  48.                         GetPlayerName(ap, winnername, sizeof(winnername));
  49.                         format(string, sizeof(string), "Deathmatch: Grenade Battlefield has ended and %s is the winner!", winnername);
  50.                         SendClientMessageToAll(COLOR_GREEN, string);
  51.                     }
  52.                     else if(ZomDM == 1 && DMHasStarted != 0)
  53.                     {
  54.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  55.                         GetPlayerName(ap, winnername, sizeof(winnername));
  56.                         format(string, sizeof(string), "Deathmatch: Zombotech San Fierro has ended and %s is the winner!", winnername);
  57.                         SendClientMessageToAll(COLOR_GREEN, string);
  58.                     }
  59.                     else if(SandDM == 1 && DMHasStarted != 0)
  60.                     {
  61.                         new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
  62.                         GetPlayerName(ap, winnername, sizeof(winnername));
  63.                         format(string, sizeof(string), "Deathmatch: Sandstorm has ended and %s is the winner!", winnername);
  64.                         SendClientMessageToAll(COLOR_GREEN, string);
  65.                     }
  66.                     SpawnPlayer(ap); // You may use your manuel spawn function here too.
  67.                     DMHasStarted = 0;
  68.                     DMIsStarting = 0;
  69.                     Participants = 0;
  70.                 }
Add Comment
Please, Sign In to add comment