if(strcmp(cmd, "/taxidriver", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && gTeam[playerid] == TEAM_GREEN){
new pname[256];
GetPlayerName(playerid, pname, 256);
format(string, sizeof(string), " %s Is now a taxidriver. If you have $1000 spare and need a taxi type /needtaxi [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;
}
//------------------------------------------------------------
Civilian is "TEAM_GREEN", so it is number "3" in the PEN1:LS script