Interior Bug
#1

I added a pickup to send a player to Barbara room 322.197998,302.497985,999.148437 but it sets my position to above the ocean and falling.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new string[200], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string),"%s picked up pickup id %d", name, pickupid);
    printf(string);
    if(pickupid == BlackMarket)
    {
        if(team[playerid]==0)
        {
            SetPlayerPos(playerid,322.197998,302.497985,999.148437);
            SendClientMessage(playerid,COLORYELLOW,"You entered the Black Market!");
        }
        if(team[playerid]==1)
        {
            SendClientMessage(playerid,COLORRED,"The Black Market security guards refuse to let you in!");
        }
    }
    return 1;
}
Reply
#2

You need to set the player's interior if thats the problem, let me look for the correct interior and get you it

Edit:
Interior ID: 5 322.197998, 302.497985, 999.148437

Just add this line before SetPlayerPos

Код:
SetPlayerInterior(playerid, 5);
And it should work fine, if not tell me.
Reply
#3

So i have to change their interior then tele them? And change it back when they leave? 1. How do i do that and 2. what interiors do i do?
Reply
#4

Also add

Код:
SetPlayerInterior(playerid, 0);
Under your OnPlayerDeath callback
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)