if(strcmp(cmd, "/service", true) == 0) { if(IsPlayerConnected(playerid)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "|__________________ Service Names __________________|"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /service [name]"); SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Medic, Mechanic"); SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________|"); return 1; } if(strcmp(x_nr,"taxi",true) == 0) { if(TaxiDrivers < 1) { SendClientMessage(playerid, COLOR_GREY, " There are no Taxi Drivers On Duty at the moment, try again later !"); return 1; } if(TransportDuty[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You can't call for a Taxi now !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "** %s is in need of a Taxi Driver. (use /accept taxi to accept the call)", sendername); SendJobMessage(14, TEAM_AZTECAS_COLOR, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Taxi Driver, wait for a reply."); TaxiCall = playerid; return 1; } else if(strcmp(x_nr,"medic",true) == 0) { if(Medics < 1) { SendClientMessage(playerid, COLOR_GREY, " There are no Medics On Duty at the moment, try again later !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "** %s is in need of a Medic. (use /accept medic to accept the call)", sendername); SendJobMessage(11, TEAM_AZTECAS_COLOR, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Medic, wait for a reply."); MedicCall = playerid; return 1; } else if(strcmp(x_nr,"mechanic",true) == 0) { if(Mechanics < 1) { SendClientMessage(playerid, COLOR_GREY, " There are no Car Mechanics On Duty at the moment, try again later !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "** %s is in need of a Car Mechanic. (use /accept mechanic to accept the call)", sendername); SendJobMessage(7, TEAM_AZTECAS_COLOR, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a Car Mechanic, wait for a reply."); MechanicCall = playerid; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Unknown service name !"); return 1; } } return 1; }