23.03.2015, 18:10
Help with my server
23.03.2015, 18:18
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!
You do not have permission to drive this car. Rent a room at the owner's house first!
23.03.2015, 19:51
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!");
}
}
23.03.2015, 19:58
Is PlayerInfo[playerid][Housekey] set to the vehicle's ID that you're trying to enter?
23.03.2015, 19:59
Quote:
|
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!");
}
}
|
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)



