09.09.2016, 13:27
PHP код:
if(checkpointid == GM[fuelstationCP] && !found)
{
if(IsPlayerInAnyVehicle(playerid))//Here was the problem
{
Player[playerid][enteredCP] = GetTickCount();
ShowPlayerDialog(playerid, DIALOG_FUELSTATION, DIALOG_STYLE_LIST, "Fuel station", "Repair vehicle"CHAT_YELLOW"", "Buy", "Cancel");
found = true;
}
else
{
Server(playerid, "You must be inside vehicle to use this checkpoint");
}
}
PHP код:
if(!IsPlayerInAnyVehicle(playerid)) //Means if player is not in any vehicle