Help with gamemode
#1

Hello i wont to change the place when the player connect and i put onplayerconnect this
PHP код:
SetPlayerCameraPos(playerid,1543.0, -1324.010.2);
SetPlayerCameraLookAt(playerid,1334.5, -1291.1104.0); 
but the place on player connect doesn't change
Reply
#2

pawn Код:
public OnPlayerRequestClass(playerid,classid) {
    // Your code.
    return true;
}
Reply
#3

LOL It's easy man only you need to do is that go in game and found place where you want to SPAWN players write /save go in yout GTA:SA directory and look for file savedpositions.txt find your spawn cordinats and change it in your gamemode OnPlayerRequestClass
Код:
SetPlayerPos(playerid, change this with cordinats from savedpositions);  
SetPlayerCameraPos(playerid, change this with cordinats from savedpositions); 
SetPlayerCameraLookAt(playerid, change this with cordinats from savedpositions);
Give me +rep If i help you
Reply
#4

again don't work
the code
PHP код:
SetPlayerPos(playerid1660.0,-1324.0,237.2);
    
SetPlayerCameraPos(playerid,1650.0, -1324.0284.2);
    
SetPlayerCameraLookAt(playerid,1374.5, -2431.1239.0); 
Reply
#5

someone
Reply
#6

dont bump after just 11 mins...
pawn Код:
public OnPlayerRequestClass(playerid,classid) {
SetPlayerPos(playerid, 1660.0,-1324.0,237.2);
    SetPlayerCameraPos(playerid,1650.0, -1324.0, 284.2);
    SetPlayerCameraLookAt(playerid,1374.5, -2431.1, 239.0);
    return true;
}
Reply
#7

I won't when player connect not when he won't to choose player
Reply
#8

Theres no way to change the OnPlayerConnect camera, you can only change it when the OnPlayerRequestClass is called
Reply
#9

no it can because i get this coordinates from one gamemode and the place is change and they are under public OnPlayerConnect but i can't find my place of error
Reply
#10

someone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)