Mine
public text v1 · immutable else if(strcmp(cmdtext,"/taxi",true,5) == 0)
{
GetPlayerName(playerid, playername, 30);
new string[256];
new anytaxi;
format(string, sizeof(string), "%s(%d) needs a taxi!", playername, playerid);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && gTeam[i] == TEAM_TAXI)
{
SendClientMessage(i, 0xFCC60AFF, string);
anytaxi++;
}
i++;
}
if(anytaxi == 0)
{
SendClientMessage(playerid, 0xFCC60AFF, "Sorry but there are no Taxi Drivers.");
}
return 1;
}