script only works for id 0
#7

pawn Код:
forward Deliver(playerid);
public Deliver(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
            if(gTeam[playerid] == TEAM_DEFENDERS)
            {
                GameTextForPlayer(playerid, "~g~ Mission Completed", 6000, 4);
                GivePlayerMoney(playerid, 3000);
                SetPlayerScore(playerid,GetPlayerScore(playerid)+3);
                SetTimer("Finshed", 6000, 0);
                SetPlayerCameraPos(playerid, 2576.2761,2265.6660,13.8203);
                SetPlayerCameraLookAt(playerid, 2581.9424,2271.2832,11.9809);
            }
            else if(gTeam[playerid] == TEAM_ATTACKERS)
            {
                GameTextForPlayer(playerid, "~r~ Mission Failed", 6000, 4);
                SetPlayerCameraPos(playerid, 2576.2761,2265.6660,13.8203);
                SetPlayerCameraLookAt(playerid, 2581.9424,2271.2832,11.9809);
                SetTimer("Finsh",6000,false);
            }
            SetTimer("Finsh",6000,false);
        }
    }
    return 1;
}
Try this...
Reply


Messages In This Thread
script only works for id 0 - by geerdinho8 - 07.07.2011, 15:45
Re: script only works for id 0 - by leong124 - 07.07.2011, 15:50
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 16:03
Re: script only works for id 0 - by alpha500delta - 07.07.2011, 16:16
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 16:24
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 17:05
Re: script only works for id 0 - by Hipflop - 07.07.2011, 17:25
Re: script only works for id 0 - by geerdinho8 - 07.07.2011, 18:20
Re: script only works for id 0 - by Hipflop - 07.07.2011, 18:26
Re: script only works for id 0 - by leong124 - 08.07.2011, 05:24

Forum Jump:


Users browsing this thread: 2 Guest(s)