Yep, response is 1 if you click ok, and 0 if you click cancel
So do it like this:
pawn Код:
if(dialogid ==4512) { if(response ==1) { //Your code after the first if }else { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } }
You do not need to use IsPlayerConnected btw, because a player who is not connected cant click on a dialog
Oh okay thanks, And about the "IsPlayerConnected" haha thanks