Problem with cam - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with cam (
/showthread.php?tid=105997)
Problem with cam -
Pawno_Master - 01.11.2009
Код:
case 0: //hacker
{
if(job[playerid] != nojob)
{
SendClientMessage(playerid,0xAA3333AA,"You already have a job type /stopjob to stop your job");
}
else if(job[playerid] == nojob)
{
SendClientMessage(playerid, 0xAA3333AA, "You are a Hacker Your Commands Are /hack /stophack /sendfiles");
job[playerid] = hacker;
SetPlayerCameraPos(playerid,684.6459,-534.7535,17.1340);
SetPlayerCameraLookAt(playerid, 671.0868,-519.5146,16.3359);
TogglePlayerControllable(playerid,false);
}
}
i have this code but if the player changes the cam the buidling wont load
so player choose hacker
than he gets an other cam before a building
but the building doesn't load properly how to fix this?
Re: Problem with cam -
Sergei - 01.11.2009
Default SA map also streams textures, so if player position is somewhere far from where camera is it won't load detailed textures. Set layer position somewhere near camera to make sure that textures load.