[HELP] Need Scripter
#1

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
Reply
#2

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.
Reply
#3

check for

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

then delete it
Reply
#4

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
Reply
#5

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

Reply
#6

"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.
Reply
#7

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


Forum Jump:


Users browsing this thread: 2 Guest(s)