hElp me with this plssss - 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 me with this plssss (
/showthread.php?tid=388536)
hElp me with this plssss -
rvald8 - 29.10.2012
How can u make a spawn thingy... I mean when u connect to the server then u'll see whats the character ur choosing.
if i connect to my server i cant see what character im choosing ... I mean how do u put a camera at the front of the character so u know what kind of character u are choosing pls help ....
Re: hElp me with this plssss -
Abhishek. - 29.10.2012
SetCameraPos();
and to set the player use SetPlayerPos();
Re: hElp me with this plssss -
_Khaled_ - 29.10.2012
PHP код:
//Public OnPlayerRequestClass.
public OnPlayerRequestClass(playerid, classid)
{
Class[playerid] = classid;
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,1000);
SetPlayerPos(playerid,944.99,-41.64,1001.77);
SetPlayerFacingAngle(playerid,180.0);
SetPlayerCameraPos(playerid,944.69,-47.54,1001.12);
SetPlayerCameraLookAt(playerid,944.99,-41.64,1001.77);
switch(classid)
{
case 0:
{
GameTextForPlayer(playerid,"~w~TEST",1000,4);
}
case 1:
{
GameTextForPlayer(playerid,"~b~TEST2",1000,4);
}
return 1;
}