Guest User

Untitled

a guest
Nov 27th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. CMD:dmlist(playerid, params[])
  2. {
  3.  
  4. if(InDM[playerid] == 1) return SendClientMessage(playerid, COLOR_RED -1, "You are already in the Deathmatch"); // Use this to disable the command for the player while he is in the DM.
  5.  
  6. new dm1, dm2, dm3, dm4, dm5;
  7. for(new i, j = GetPlayerPoolSize(); i <= j; i++)
  8. {
  9. switch(DMZone[i])
  10. {
  11. case 1: dm1++; // This Deathmatch 1
  12. case 2: dm2++; // This Deathmatch 2
  13. case 3: dm3++; // This Deathmatch 3
  14. case 4: dm4++; // This Deathmatch 4
  15. case 5: dm5++; // This Deathmatch 5
  16. }
  17. }
  18.  
  19. new string[128];
  20. format(string, sizeof(string),
  21. "Name\tPlayers\n\
  22. LVPD (/dm 1)\t %i\n\
  23. Jefferson Motel (/dm 2)\t %i\n\
  24. Jefferson Area (/dm 3)\t %i\n\
  25. RC Battle Ground(/dm 4)\t %i\n\
  26. Deathmatch 5(/dm 5)\t %i\n\, dm1, dm2, dm3, dm4, dm5);
  27. ShowPlayerDialog(playerid, DM_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Koky's Deathmatch List", string, "Okay", "Cancel");
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment