SAMP flipping out when entering an interior by SetPlayerPos?
#1

Hello, I've been fooling around with pawno and I'm trying to make an entrance to LSPD, and I've done an pickup icon which works fine:

Код:
public OnGameModeInit()
{
	CreateDynamicPickup(1239, 1, 1555.15, -1675.69, 16.19, -1, -1, -1, 100.0);
(only the beginning of the OnGameModeInit)

It shows up as an "i" and works fine, just like I want it.
Then I added this:
Код:
CMD:enter(playerid, params[]){
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1555.15, -1675.69, 16.19)){
		//SetPlayerPos(playerid, 246.46, 66.44, 1003.64);
		//SetPlayerInterior(playerid, 6);
		SetPlayerPos(playerid, 248.1425, 66.9165, 1003.6406);
	}
}
And it does send me PD or whatever, but then my screen turns yellow/screwed up, until I go out of the interior.
The SetPlayerPos & SetPlayerInterior I added with // in front was two I tried earlier, which didn't work either.

However, with the last one, I managed to get inside the interior, but it's all empty and looks like this:
http://puu.sh/6hqRh.jpg (removed IMG tags since it was too big)

So either I get my screen screwed up when I'm inside the interior, or I get an empty interior with some objects flying in the air. I have tried to teleport to LSPD using s_beit, and that would allow me to get inside there, with all objects loaded fine. Anyone knows what might be wrong?


I made an simple /whatsmycoords and that would give me those coords, which is totally different, and I've tried them and with those I get the yellow screen thingy.
Reply
#2

Whaaaaaaaaaaaaaaat
Reply
#3

maybe there is an other enter command?
also
pawn Код:
CMD:enter(playerid, params[]){
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1555.15, -1675.69, 16.19)){
        //SetPlayerPos(playerid, 246.46, 66.44, 1003.64);
        //SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid, 248.1425, 66.9165, 1003.6406);
    }
}
two setplayerpos
it should be one only :
pawn Код:
CMD:enter(playerid, params[]){
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1555.15, -1675.69, 16.19)){
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid, 248.1425, 66.9165, 1003.6406);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)