House
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
provide the entire House System….
I've already erased it house system...

But I have one problem here. I have a house number 200 to build a car Buffalo, that car belongs to the house 200..
But when I get in the car, it will show me that this car has its own EmpireSk... I can not get in the car even when I have a username EmpireSk...

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(!
IsPlayerNPC(playerid))
    {
        if(
IsPlayerConnected(playerid))
        {
                        if(!
ispassenger)
            {
                if(
IsPlayerConnected(playerid))
                {
                    for(new 
houseid;houseid<MAX_HOUSES;houseid++)
                    {
                        for(new 
x;x<HouseInfo[houseid][CarSlots];x++)
                        {
                            if(
vehicleid == Vehicle[houseid][x])
                            {
                                new 
HC GetPVarInt(playerid,"CarID");
                                new 
sa[128];
                                
format(sa,100,"VRLS/Houses/House%d.Car%d.txt",houseid,HC);
                                new 
blockmsg[128];
                                
format(blockmsg,128,"~r~WARNING~n~~n~~w~This vehicle belongs to the player:~n~~g~%s",DOF2_GetString(sa,"Owner"));
                                
FormatPlayerInfoBox(playerid,"~g~Virtual Reality",blockmsg,3000);
                                
StopPlayer(playerid);
                                return 
0;
                            }
                        }
                    }
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
House - by EmpireSk - 25.02.2019, 11:52
Re: House - by EmpireSk - 25.02.2019, 12:06
Re: House - by EmpireSk - 25.02.2019, 16:24
Re: House - by Pottus - 25.02.2019, 17:15
Re: House - by EmpireSk - 25.02.2019, 18:11
Re: House - by Pottus - 25.02.2019, 18:36
Re: House - by EmpireSk - 25.02.2019, 19:07
Re: House - by Pottus - 25.02.2019, 19:12
Re: House - by EmpireSk - 25.02.2019, 19:56
Re: House - by SymonClash - 25.02.2019, 19:59

Forum Jump:


Users browsing this thread: 2 Guest(s)