PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 609)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, ClothesPoint1))
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("Loading", 5000, 0, "i", playerid);
GameTextForPlayer(playerid, "~g~Loading the goods please wait", 3000, 5);
SetPlayerCheckpoint(playerid, ClothesPoint2, 7.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, ClothesPoint2))
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("Trader", 5000, 0, "i", playerid);
GameTextForPlayer(playerid, "~g~Clearing the goods please wait", 3000, 5);
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, GunsPoint1))
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("LoadingGuns", 5000, 0, "i", playerid);
GameTextForPlayer(playerid, "~g~Loading the goods please wait", 3000, 5);
SetPlayerCheckpoint(playerid, GunsPoint2, 7.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, GunsPoint2))
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("Guns", 5000, 0, "i", playerid);
GameTextForPlayer(playerid, "~g~Clearing the goods please wait", 3000, 5);
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
}
}
it gives 26 errors i reallycant see any missing brackets help please