if(strcmp(x_job,"1",true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "--- Grove Turfs ---"); format(string, sizeof(string), "Turfs - %d",TeamInfo[TEAM_GROVE][TurfWarsWon]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); } // if(strcmp(x_job,"2",true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "--- Ballas Turfs ---"); format(string, sizeof(string), "Turfs - %d",TeamInfo[TEAM_BALLAS][TurfWarsWon]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); } // if(strcmp(x_job,"3",true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "--- Vagos Turfs ---"); format(string, sizeof(string), "Turfs - %d",TeamInfo[TEAM_VAGOS][TurfWarsWon]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); } // |
if(strcmp(cmd, "/turfs", true) == 0) { if(IsPlayerConnected(playerid)) { new para1; new x_job[256]; x_job = strtok(cmdtext, idx); tmp = strtok(cmdtext, idx); if(!strlen(x_job)) { SendClientMessage(playerid, COLOR_RED, "Use Grove - 1,Ballas - 2 и тн."); SendClientMessage(playerid, COLOR_RED, "Grove, Ballas, Vagos, Straight Outta Compton, 21, VCripz, Aztec"); SendClientMessage(playerid, COLOR_RED, "ThugLife, MS13,DPK"); SendClientMessage(playerid, COLOR_RED, "Black Mafia, Boyz, Boys"); return 1; } // // if(strcmp(x_job,"1",true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "--- Grove Turfs ---"); format(string, sizeof(string), "Turfs - %d",TeamInfo[TEAM_GROVE][TurfWarsWon]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); } // if(strcmp(x_job,"2",true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "--- Ballas Turfs ---"); format(string, sizeof(string), "Turfs - %d",TeamInfo[TEAM_BALLAS][TurfWarsWon]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); } // if(strcmp(x_job,"3",true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "--- Vagos Turfs ---"); format(string, sizeof(string), "Turfs - %d",TeamInfo[TEAM_VAGOS][TurfWarsWon]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); } // |
new turfString[80];
format(turfString, sizeof(turfString), "Groove Turfs - %d\nBallas Turfs - %d\nVagos Turfs - %d",TeamInfo[TEAM_GROVE][TurfWarsWon], TeamInfo[TEAM_BALLAS][TurfWarsWon], TeamInfo[TEAM_VAGOS][TurfWarsWon]);
ShowPlayerDialog(playerid, REPLACE_ME_WITH_AN_NUMBER_OR_AN_NUMERIC_DEFINITION, DIALOG_STYLER_MSGBOX, "Number of turfs owned", turfString, "Ok", "");