pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(CPS_IsPlayerInCheckpoint(playerid, checkpedagio))
{
ShowPlayerDialog(playerid, DIALOGID+17, DIALOG_STYLE_MSGBOX, "Pedagio", "Bem vindo ao pedagio, deseja passar?", "Sim", "Nгo");
}
else if(CPS_IsPlayerInCheckpoint(playerid, checkpedagio2))
{
ShowPlayerDialog(playerid, DIALOGID+18, DIALOG_STYLE_MSGBOX, "Pedagio", string, "Sim", "Nгo");
}
}
if(dialogid == DIALOGID+17)
{
if(response)
{
SetVehiclePos(vehicleid,50.4686,-1524.8268,5.0681);
}
else
{
SetVehiclePos(vehicleid,67.2928,-1527.2106,4.8696);
}
}
else if(dialogid == DIALOGID+18)
{
if(response)
{
SetVehiclePos(vehicleid,63.1642,-1540.7421,5.0588);
}
else
{
SetVehiclePos(vehicleid,52.5437,-1537.2518,5.1314);
}
}