San Andreas News Show : Bug
#1

Ello' lads.

So basically we've encountered a problem in our server. It'll automatically show that you're in a live show once the player connects. It isn't something to do in OnPlayerConnect() it is something that I cannot find the issue of. The only way of stopping it is switching to the SANews faction and then ending the broadcast yourself.
Reply
#2

can we see all the code? or were you think the problem is?
Reply
#3

/live code.
Код:
CMD:live(playerid, params[]) {
	if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 4)
		return SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");

	if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) {
	    if(shutdown == 1) return SendClientMessage(playerid, COLOR_WHITE, "The news system is currently shut down." );
		if(TalkingLive[playerid] != INVALID_PLAYER_ID) {
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Live conversation ended.");
			SendClientMessage(TalkingLive[playerid], COLOR_LIGHTBLUE, "* Live conversation ended.");
			TogglePlayerControllable(playerid, 1);
			TogglePlayerControllable(TalkingLive[playerid], 1);
			TalkingLive[TalkingLive[playerid]] = INVALID_PLAYER_ID;
			TalkingLive[playerid] = INVALID_PLAYER_ID;
			return 1;
		}

		new string[128], giveplayerid;
		if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /live [player]");

		if (IsPlayerConnected(giveplayerid)) {
			if (ProxDetectorS(5.0, playerid, giveplayerid)) {
			    if(PlayerInfo[giveplayerid][pLiveBanned] == 1) return SendClientMessage(playerid, COLOR_GREY, "That player is interview banned.");
				if(PlayerCuffed[giveplayerid] >= 1 || PlayerCuffed[playerid] >= 1) {
					SendClientMessage(playerid, COLOR_GRAD2, "You are unable to do this right now.");
				} else {
					if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot talk live with yourself!"); return 1; }
					format(string, sizeof(string), "* You offered %s to have a live conversation.", GetPlayerNameEx(giveplayerid));
					SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
					format(string, sizeof(string), "* %s offered you to have a live conversation, type /accept live to accept.", GetPlayerNameEx(playerid));
					SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
					LiveOffer[giveplayerid] = playerid;
				}
			} else return SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
		} else return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
	} else SendClientMessage(playerid, COLOR_GREY, "   You are not a News Reporter!");
	return 1;
}
I think that could be a mistake in there somewhere.

Or if it helps you there is no /accept live command anywhere.
Reply
#4

You Need a /accept live CMD if not then whats there to accept
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)