Problem with map changing system
#6

you mean i need to add
Код:
if(gTeam[i] == TEAM_DEFENDERS && fTeam[i] == TEAM_ATTACKERS)
{
//print the win message for defenders and fail message for attackers.
}
instead of

Код:
	for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
    PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
        	    if(gTeam[i] == TEAM_DEFENDERS)
        	    {
        	        GameTextForPlayer(i, "~g~ ~n~Mission Passed", 6000, 4);
        	        SendClientMessage(playerid,yellow,"{7C7C7C}» You've Recieved 5 Points and $10,000 for Completing the mission Objective.");
        	        GivePlayerMoney(i, 10000);
   	        	    SetPlayerScore(i,GetPlayerScore(i)+5);
       	    	    SetTimer("Finshed", 6000, 0);
   	    	        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
					SetPlayerCameraPos(i, 1276.0552,-788.1879,96.9662);
					SetPlayerCameraLookAt(i, 1288.8605,-788.3223,96.4609);
        	    }
        	    else if(gTeam[i] == TEAM_ATTACKERS)
        	    {
        	        GameTextForPlayer(i, "~r~ ~n~Mission Failed", 6000, 4);
       	            SendClientMessage(playerid,yellow,"{FF0000}» You've Lost -$2000 Money for Not completing the Mission Objective.");
					SetPlayerCameraPos(i, 1276.0552,-788.1879,96.9662);
					SetPlayerCameraLookAt(i, 1288.8605,-788.3223,96.4609);
	                PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
					GivePlayerMoney(i, -2000);
	    			SetTimer("Finshed",6000,false);
        	    }
    PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
    SendClientMessage(playerid,0xFF00FFFFF,"{55FF00}» Success : {FFFFFF}Your Stats have been Successfully Saved.");
    SetTimer("Finshed",2000,false);
Under
Код:
forward NoExplode2(playerid);
public NoExplode2(playerid)
{
Reply


Messages In This Thread
Problem with map changing system - by SpikY_ - 13.06.2015, 11:06
Re: Problem with map changing system - by MohammedZ - 13.06.2015, 11:20
Re: Problem with map changing system - by SpikY_ - 13.06.2015, 11:24
Re: Problem with map changing system - by SpaceX - 13.06.2015, 11:34
Re: Problem with map changing system - by SpaceX - 13.06.2015, 11:37
Re: Problem with map changing system - by SpikY_ - 13.06.2015, 11:50
Re: Problem with map changing system - by SpaceX - 13.06.2015, 13:19
Re: Problem with map changing system - by SpikY_ - 15.06.2015, 07:47
Re: Problem with map changing system - by SpikY_ - 15.06.2015, 07:55
Re: Problem with map changing system - by SpaceX - 15.06.2015, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)