How to chnage the background, when selecting your skin
#1

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
Reply
#2

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
Reply
#3

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

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.
Reply
#5

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?
Reply
#6

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.
Reply
#7

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;
}
Reply
#8

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

Reply
#9

Ok i will try
Reply
#10

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)