SA-MP Forums Archive
How to chnage the background, when selecting your skin - 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: How to chnage the background, when selecting your skin (/showthread.php?tid=73883)



How to chnage the background, when selecting your skin - aspire5630 - 18.04.2009

Right, i have a /save of where i want him to be stood, and another /save where i want the camera
i got told i need them,
soo what do i do know to change the Background when your selecting your skin :S



Re: How to chnage the background, when selecting your skin - Castle - 18.04.2009

Heres a Filter Script in which you can fly with your Camera and when you like the position do a command that saves the camera location with the camera Look At Location.
Here it is: http://forum.sa-mp.com/index.php?topic=98642.0



Re: How to chnage the background, when selecting your skin - StrickenKid - 18.04.2009

http://forum.sa-mp.com/index.php?topic=98642.0 = this post.. lmao


Re: How to chnage the background, when selecting your skin - Klutty - 18.04.2009

Replace the coords in this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
With your own.


Re: How to chnage the background, when selecting your skin - aspire5630 - 18.04.2009

Quote:
Originally Posted by ʎʇʇnןʞ
Replace the coords in this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
With your own.
thanks theese are my saved locations
Will it work, its at liberty city, but that is a int
soo im not sure, will i just be looking at the clouds?


Re: How to chnage the background, when selecting your skin - Klutty - 18.04.2009

Quote:
Originally Posted by aspire5630
Quote:
Originally Posted by ʎʇʇnןʞ
Replace the coords in this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
With your own.
thanks theese are my saved locations
Will it work, its at liberty city, but that is a int
soo im not sure, will i just be looking at the clouds?
Then just put
pawn Код:
SetPlayerInterior(playerid, interior);
Replace the "interior" with the interior ID that it uses, go there and type /interior to see it.


Re: How to chnage the background, when selecting your skin - aspire5630 - 18.04.2009

Quote:
Originally Posted by ʎʇʇnןʞ
Quote:
Originally Posted by aspire5630
Quote:
Originally Posted by ʎʇʇnןʞ
Replace the coords in this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
With your own.
thanks theese are my saved locations
Will it work, its at liberty city, but that is a int
soo im not sure, will i just be looking at the clouds?
Then just put
pawn Код:
SetPlayerInterior(playerid, interior);
Replace the "interior" with the interior ID that it uses, go there and type /interior to see it.
Thanks i get a warning :P

C:\Users\Jj\Desktop\My stunt server\gamemodes\kontrolNEW.pwn(371) : warning 235: public function lacks forward declaration (symbol "OnPlayerClass")



On line 371 their is

LINE 371 >>public OnPlayerClass(playerid, classid)
{
SetPlayerInterior(playerid,15);

SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);

SetPlayerFacingAngle(playerid, 90.0);

SetPlayerCameraPos(playerid,256.0815,-43.0475,1003.0234);

SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
return 1;
}


Re: How to chnage the background, when selecting your skin - member - 18.04.2009

it is meant to be:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
not:
pawn Код:
public OnPlayerClass(playerid, classid)
as was mentioned by ʎʇʇnןʞ.




Re: How to chnage the background, when selecting your skin - aspire5630 - 18.04.2009

Ok i will try


Re: How to chnage the background, when selecting your skin - OmeRinG - 18.04.2009

Hmm I onced made a small function that makes it easier:
instead of doing
setplayerpos
setplayerfacingangle
setcamerapos
setcameralookat
all you have to do is put the player pos and camera pos.....

there it is:
forward SetPlayerSelectionPos(playerid, Floatx, Floaty, Floatz, Floata, Float:cx, Float:cy, Float:cz);

public SetPlayerSelectionPos(playerid, Floatx, Floaty, Floatz, Floata, Float:cx, Float:cy, Float:cz)
{
SetPlayerPos(playerid, px, py, pz);
SetPlayerFacingAngle(playerid, pa);
SetPlayerCameraPos(playerid, cx, cy, cz);
SetPlayerCameraLookAt(playerid, px, py, pz);
}