script only works for id 0
#1

Ive made an script if a player fails to steal a car mission failed pops up and the camera changes,
it all works perfect, but only for id 0.
How can i make that everybody's camera gets set etc.
Please help and explain me how to fix it.

pawn Код:
forward Deliver(playerid);
public Deliver(playerid)
{
    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;
}
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: 5 Guest(s)