Position Help! - 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: Position Help! (
/showthread.php?tid=291774)
Position Help! -
Mr_Scripter - 21.10.2011
look at this
pawn Код:
SetPlayerPos(playerid,233.3431,1936.7926,33.8984);
SetPlayerCameraPos(playerid,228.0594,2099.4875,119.2728);
it's from this
pawn Код:
AddPlayerClass(0,228.0594,2099.4875,119.2728,180.4577,0,0,0,0,0,0); //
AddPlayerClass(160,233.3431,1936.7926,33.8984,179.2217,0,0,0,0,0,0); //
Why it spaws at Red county? and Camera is not at the position i want
someone help pleaze
Re: Position Help! -
Infinity - 21.10.2011
Where is the code called? Maybe something is wrong there.
Re: Position Help! -
Mr_Scripter - 21.10.2011
pawn Код:
SetPlayerSkin(playerid, 160);
SetPlayerPos(playerid,233.3431,1936.7926,33.8984);
SetPlayerCameraPos(playerid,228.0594,2099.4875,119.2728);
SetPlayerCameraLookAt(playerid,228.0594,2099.4875,119.2728);
SetPlayerColor(playerid,COLOR_BRIGHTRED);
}
Re: Position Help! - Max_Coldheart - 21.10.2011
He wants you to show the whole callback.
Re: Position Help! -
Mr_Scripter - 21.10.2011
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
if(classid == 0)
{
gTeam[playerid] = PAKISTAN;
GameTextForPlayer(playerid,"~r~Pakistan",3000,5);
SetPlayerSkin(playerid, 160);
SetPlayerPos(playerid,233.3431,1936.7926,33.8984);
SetPlayerCameraPos(playerid,228.0594,2099.4875,119.2728);
SetPlayerCameraLookAt(playerid,233.3431,1936.7926,33.8984);
SetPlayerColor(playerid,COLOR_BRIGHTRED);
}
else if(classid == 1)
{
gTeam[playerid] = USA;
GameTextForPlayer(playerid,"~b~United Stats Of America Special Force",3000,5);
SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerSkin(playerid,285);
SetPlayerColor(playerid,COLOR_BLUE);
}
return 1;
}