I need a 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need a help (
/showthread.php?tid=221332)
I need a help -
Ironboy - 05.02.2011
Hello!
I made a teleport command inside a shop .
In that when i use the command the player is standing in different position.
I want to set it to a permenent position, plz help me. This is the pawno..
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/casino", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 206.9470,-137.1189,1002.8744);
SetPlayerInterior(playerid,3);
return 1;
}
return 0;
}
Re: I need a help -
Matej_ - 05.02.2011
So, what's wrong with the code??
Explain what's the problem because i don't understand what are you talking about. lol
Re: I need a help -
Ironboy - 05.02.2011
i mean ,when i use the command first time the player will stand proper position and i use second time the player will stand in different position (player will turn left or right) that is the problem
Re: I need a help -
xRyder - 05.02.2011
Use SetPlayerFacingAngle()
Re: I need a help -
Matej_ - 05.02.2011
Is this the shop interior that you use?
Re: I need a help -
Ironboy - 05.02.2011
yes this is the shop , i stand near the door and save infoot pos and interior
interior = 3
Re: I need a help -
jamesbond007 - 05.02.2011
Quote:
Originally Posted by xRyder
Use SetPlayerFacingAngle()
|
use this to put the player facing a different direction
Re: I need a help -
Ironboy - 05.02.2011
ok ty all