Help with my server
#1

Hi everyone,why my server say me when i want to enter in anyone faction car this
Reply
#2

Show us your code for LSPD cruiser(s) or CTRL+F and search for:
You do not have permission to drive this car. Rent a room at the owner's house first!
Reply
#3

Here are the codes
Код:
  incar[playerid] = true;
    TeleportTime[playerid] = 10;
	GetVehiclePos(vehicleid, ReadPlayerPosition[playerid][ReadX], ReadPlayerPosition[playerid][ReadY], ReadPlayerPosition[playerid][ReadZ]);
	if(vehicleid >=1 && vehicleid <68)
	{
	    if(vehicleid ==PlayerInfo[playerid][Housekey] || (ispassenger == 1)){}
	    else
	    {
	        TogglePlayerControllable(playerid,0);
			SetTimerEx("UnfreezeTime", 10, false, "d", playerid);
	        SendClientMessage(playerid,-1,"  You have no permission to drive this car. Rent a room at the owner's house first!");
	    }
	}
Reply
#4

Is PlayerInfo[playerid][Housekey] set to the vehicle's ID that you're trying to enter?
Reply
#5

Quote:
Originally Posted by KiM0Ro
Посмотреть сообщение
Here are the codes
Код:
  incar[playerid] = true;
    TeleportTime[playerid] = 10;
	GetVehiclePos(vehicleid, ReadPlayerPosition[playerid][ReadX], ReadPlayerPosition[playerid][ReadY], ReadPlayerPosition[playerid][ReadZ]);
	if(vehicleid >=1 && vehicleid <68)
	{
	    if(vehicleid ==PlayerInfo[playerid][Housekey] || (ispassenger == 1)){}
	    else
	    {
	        TogglePlayerControllable(playerid,0);
			SetTimerEx("UnfreezeTime", 10, false, "d", playerid);
	        SendClientMessage(playerid,-1,"  You have no permission to drive this car. Rent a room at the owner's house first!");
	    }
	}
Is this your script?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)