07.07.2011, 15:45
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.
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;
}