SA-MP Forums Archive
[HELP] Need Scripter - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Need Scripter (/showthread.php?tid=261821)



[HELP] Need Scripter - ServerScripter - 15.06.2011

i have a probleme whene the player Spawn, because whene He Spawns he Goes to LV, But i need him going to LS
Please Help me i'm newbie in scripting


Re: [HELP] Need Scripter - *IsBack - 15.06.2011

Either find AddPlayerClass(....) in your script and change X,Y,Z positions
or find OnPlayerSpawn(....) callback and look for SetPlayerPos(...) function and change X,Y,Z positions there.


Re: [HELP] Need Scripter - Unknown_Killer - 15.06.2011

check for

pawn Код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
under OnPlayerRequestClass

then delete it


Re: [HELP] Need Scripter - Sascha - 15.06.2011

Quote:
Originally Posted by Unknown_Killer
Посмотреть сообщение
check for

pawn Код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
under OnPlayerRequestClass

then delete it
don't do that.. that's totally wrong..

as said before search for "AddPlayerClass" at OnGameModeInit and change the coordinates..
https://sampwiki.blast.hk/wiki/AddPlayerClass here's a description of the function


Re: [HELP] Need Scripter - Unknown_Killer - 15.06.2011

well he means that he made some pos @ ls but he spawn @ lv well each new gamemode have this pos

pawn Код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
and i know about player class

check his question
Quote:

i have a probleme whene the player Spawn, because whene He Spawns he Goes to LV, But i need him going to LS
Please Help me i'm newbie in scripting




Re: [HELP] Need Scripter - Sascha - 15.06.2011

"When he spawns" spawning is when you switch to the spawn point dude.. if you change the "SetPlayerPos" at "OnPlayerRequestClass" this will change the player's position in the spawn selection (where you can choose your skin) and not the spawn position.


Re: [HELP] Need Scripter - ServerScripter - 15.06.2011

Thank you all For Replying me!
Code:
Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,220.3261,1822.9734,7.536;
SetPlayerCameraLookAt(playerid,220.3261,1822.9734, 7.536;
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4 141);
SetPlayerFacingAngle(playerid, 270 );
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1 ,0,0,0,-1); //smooth dancing. It's most fitting to the music
CreateExplosion(212.9525,1822.9084,6.4141, 11, 10.0);
return 1;
}

ok so, i need to change my cameralook to LS or something, how can i do?((Sorry for my bad english))