Interior Problem?
#1

Hey guys, I'm going through a problem that I have no idea how to fix. I've already researched it but found nothing.

The problem is when I try to get to an interior, I just end up in the air with nothing around me. I find it very annoying, I've tried everything possible but can't seem to work it out.

Here's the code:

Код:
	SetPlayerVirtualWorld(playerid, 0);
    	SetPlayerInterior(playerid, 2);
    	SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
I got the interior id and coords from: http://weedarr.wikidot.com/interior .
I want the code to take me to Madd Dogg's Mansion.

Thanks a lot,
Look forward to hearing from you.
Reply
#2

PHP код:
CMD:madddog(playerid,params[])
{
        
SetPlayerInterior(playerid2);
        
SetPlayerPos(playerid1267.663208,-781.323242,1091.906250);
        return 
1;

Reply
#3

Quote:
Originally Posted by RyderX
Посмотреть сообщение
PHP код:
CMD:madddog(playerid,params[])
{
        
SetPlayerInterior(playerid2);
        
SetPlayerPos(playerid1267.663208,-781.323242,1091.906250);
        return 
1;

Still doesn't work mate.

Код:
    if (!strcmp("/henter", cmdtext))
{
    if (IsPlayerInRangeOfPoint(playerid, 1.0, X, Y, Z))
    {
        SetPlayerInterior(playerid, 2);
        SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
    }

    return 1;
}
	return 0;
}
Reply
#4

Hey, you wrote the interior id wronger.
Try this now.

PHP код:
    if (!strcmp("/henter"cmdtext))
{
    if (
IsPlayerInRangeOfPoint(playerid1.0XYZ))
    {
        
SetPlayerInterior(playerid5);
        
SetPlayerPos(playerid1267.663208,-781.323242,1091.906250);
    }
    return 
1;
}
    return 
0;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)