13.06.2015, 11:50
you mean i need to add
instead of
Under
Код:
if(gTeam[i] == TEAM_DEFENDERS && fTeam[i] == TEAM_ATTACKERS) { //print the win message for defenders and fail message for attackers. }
Код:
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);
Код:
forward NoExplode2(playerid); public NoExplode2(playerid) {