SA-MP Forums Archive
Help with gamemode - 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)
+--- Thread: Help with gamemode (/showthread.php?tid=330544)



Help with gamemode - boyan96 - 01.04.2012

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


Re: Help with gamemode - _Shade. - 01.04.2012

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



Re: Help with gamemode - RenSoprano - 01.04.2012

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


Re: Help with gamemode - boyan96 - 01.04.2012

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



Re: Help with gamemode - boyan96 - 01.04.2012

someone


Re: Help with gamemode - Jonny5 - 01.04.2012

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



Re: Help with gamemode - boyan96 - 02.04.2012

I won't when player connect not when he won't to choose player


Re: Help with gamemode - Reklez - 02.04.2012

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


Re: Help with gamemode - boyan96 - 02.04.2012

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


Re: Help with gamemode - boyan96 - 02.04.2012

someone