How can I make myself that when I give the execution directory will appear those 3 boxes. TCC and physician.
Код:
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, "{00FF00}Usage:{FFFFFF} /service [name]");
SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Medic, TCC");
SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________|");
return 1;
}
if(strcmp(x_nr,"taxi",true) == 0)
{
if(TaxiDrivers < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nu este nici un taxi disponibil , incearca mai tarziu!");
return 1;
}
if(TransportDuty[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nu poti suna dupa un taxi acum !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s (%d) are nevoie de un Taxi. Foloseste /accept taxi pentru a accepta apelul.", sendername, playerid);
SendFamilyMessage(10, TEAM_AZTECAS_COLOR, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sunat dupa un taxi, asteapta un raspuns.");
TaxiCall = playerid;
return 1;
}
else if(strcmp(x_nr,"medic",true) == 0)
{
if(Medics < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nu sunt medici disponibili in acest moment, incearca mai tarziu !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s (%d) are nevoie de un medic. (foloseste /accept medic pentru a accepta apelul)", sendername, playerid);
SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sunat un medic, asteapta un raspuns.");
MedicCall = playerid;
return 1;
}
else if(strcmp(x_nr,"tcc",true) == 0)
{
if(TCC < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nu sunt mecanici disponibili in acest moment , incearca mai tarziu !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s (%d) are nevoie de un mecanic. (foloseste /accept tcc pentru a accepta apelul)", sendername, playerid);
SendFamilyMessage(10, TEAM_AZTECAS_COLOR, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai sunat un mecanic, asteapta un raspuns .");
TCCCall = playerid;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Serviciu indisponibil!");
return 1;
}
}
return 1;
}
What you mean mr. 'romanian' ... That english it's so hard dude ?... You are 'up' and stuff , but i don't think someone will understand your 'bad english' a.k.a '****** Translator'
I think you don't want to be helped .. i ask you what you need and you showed me the translator you used ... And 'bing' and '******' translators suck .. And other translators too. The best translators are peoples.