I need a help
#1

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

So, what's wrong with the code??

Explain what's the problem because i don't understand what are you talking about. lol
Reply
#3

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

Use SetPlayerFacingAngle()
Reply
#5

Is this the shop interior that you use?

Reply
#6

yes this is the shop , i stand near the door and save infoot pos and interior
interior = 3
Reply
#7

Quote:
Originally Posted by xRyder
Посмотреть сообщение
Use SetPlayerFacingAngle()
use this to put the player facing a different direction
Reply
#8

ok ty all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)