When i create a house on my server and i buy it than if i log out or restart the server it says i dnt have a house/business and when i goto to the house or business it says that i still own it but won't let me enter and my admin base map that i made it has a tele cmd to tele thr and a cmd to open the gate non of them work
Код:
if (strcmp("/og", cmdtext, true, 10) == 0)
if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31))
{
MoveObject(AdminGate, 1354.28, -3440.25, 6.31, 2);
return 1;
}
if (strcmp("/cg", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31))
MoveObject(AdminGate, 1342.75, -3440.25, 6.31, 2);
return 1;
}
if (strcmp("/ab", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1342.36, -3435.03, 4.46);
return 1;
}
if (strcmp("/ent", cmdtext, true, 10) == 0)
if(IsPlayerInRangeOfPoint(playerid, 5, 1351.8190,-3487.5630,4.5295))
{
SetPlayerPos(playerid, -348.2069, 1666.9084, 999.2969);
SetPlayerInterior(playerid, 2);
return 1;
}
if (strcmp("/ex", cmdtext, true, 10) == 0)
if(IsPlayerInRangeOfPoint(playerid, 5, -348.2069, 1666.9084, 999.2969))
{
SetPlayerPos(playerid, 1351.8190,-3487.5630,4.5295);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}