if(strcmp(cmd, "/taxidriver", true) == 0) { if(IsPlayerInArea(playerid, 1058.1855, -1735.2654, 1102.8750, -1735.5806)) { // is player in area? if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && gTeam[playerid] == TEAM_GREEN) { // is player driving? new pname[256]; GetPlayerName(playerid, pname, 256); format(string, sizeof(string), " %s Is now a taxidriver. If you need a taxi. /calltaxi [location]", pname); SetPlayerColor(playerid, COLOR_YELLOW); SendClientMessageToAll(COLOR_YELLOW,string); taxi[GetPlayerVehicleID(playerid)] = playerid; taxiplayer[playerid] = GetPlayerVehicleID(playerid); }else{ SendClientMessage(playerid, COLOR_RED, " You must be in a vehicle and be a civilian."); } return 1; }else{ SendClientMessage(playerid, COLOR_RED, " You need to be in a taxi at the depot to become a taxi driver."); return 1; } }