House's interior doesn't show up
#2

Why are you doing this?
PHP код:
SendClientMessage(playerid, -1""COLOR_RED"Nie wszedles do domu"); 
and not this
PHP код:
SendClientMessage(playerid, -1COLOR_RED"Nie wszedles do domu"); 
And try this:

PHP код:
        CMD:wejdz(playerid,params[])
        {
            new 
hID GetHouseOutID(playerid);
            if(
hID == -255)
            {
                
SendClientMessage(playerid, -1""COLOR_RED"Nie jestes w poblizu domu");
            }
            else {
                if(
House[hID][hOwned] == 0)
                {
                    
SendClientMessage(playerid, -1""COLOR_RED"Nie mozesz wejsc do domu bez wlasciciela komenda wejdz");
                }
                else {
                    new 
name[24];
                    
GetPlayerName(playerid,name,24);
                    if(!
strcmp(House[hID][hOwner],name,false))
                    {
                        goto 
somewhere;
                    }
                    else if(
House[hID][hLocked] == 1)
                    {
                        
SendClientMessage(playerid, -1""COLOR_RED"Nie mozesz wejsc do domu jest zamkniety");
                    }
                    
somewhere:
                    
SetPlayerInterior(playeridHouse[hID][hInInt]);
                    
SetPlayerVirtualWorld(playeridHouse[hID][hInVW]);
                    
SetPlayerPos(playeridHouse[hID][hInX], House[hID][hInY], House[hID][hInZ]);
                }
            }
            return 
1;
        }
        
CMD:wyjdz(playerid,params[])
        {
            new 
hID GetHouseInID(playerid);
            if(
hID == -255)
            {
                
SendClientMessage(playerid, -1""COLOR_RED"Nie wszedles do domu");
                return 
1;
            }
            
SetPlayerInterior(playerid0);
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerPos(playerid,House[hID][hOutX],House[hID][hOutY],House[hID][hOutZ]);
            return 
1;
        } 
Reply


Messages In This Thread
House's interior doesn't show up - by mrcakke - 03.05.2017, 14:17
Re: House's interior doesn't show up - by aoky - 03.05.2017, 15:53
Re: House's interior doesn't show up - by mrcakke - 03.05.2017, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)