Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:dmlist(playerid, params[])
- {
- 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.
- new dm1, dm2, dm3, dm4, dm5;
- for(new i, j = GetPlayerPoolSize(); i <= j; i++)
- {
- switch(DMZone[i])
- {
- case 1: dm1++; // This Deathmatch 1
- case 2: dm2++; // This Deathmatch 2
- case 3: dm3++; // This Deathmatch 3
- case 4: dm4++; // This Deathmatch 4
- case 5: dm5++; // This Deathmatch 5
- }
- }
- new string[128];
- format(string, sizeof(string),
- "Name\tPlayers\n\
- LVPD (/dm 1)\t %i\n\
- Jefferson Motel (/dm 2)\t %i\n\
- Jefferson Area (/dm 3)\t %i\n\
- RC Battle Ground(/dm 4)\t %i\n\
- Deathmatch 5(/dm 5)\t %i\n\, dm1, dm2, dm3, dm4, dm5);
- ShowPlayerDialog(playerid, DM_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Koky's Deathmatch List", string, "Okay", "Cancel");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment