{ if(dialogid == 1001) { if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "You canceled!");//here PutPlayerInVehicle(playerid, cvehicle, 0); SetVehiclePos(cvehicle, 1020.7713, -920.2669, 419.8624); SetPlayerCheckpoint(playerid, 248.4739, -1329.2743, 52.6960, 5); // This will change the variable, so we can use it later on with OnPlayerEnterCheckpoint Challange1 = CreateDynamicCP( 248.4739, -1329.2743, 52.6960, 5); SendClientMessage(playerid, 0xFFFFFFFF, "You Started The Big Jump 1 Challange Get To The Checkpoint Quick"); return 1; }
{ if(pickupid == Challange1p) ShowPlayerDialog(playerid,1001,DIALOG_STYLE_MSGBOX,"Big Jump One","Do You Think You Have /nWhat It Takes To Beat This Challange?","Start","");//here }
dialog preform the action |
What i mean is how do i make my dialog respone to a player pressing "start" in the dialog? |
if(dialogid == 1001 && response) {
if(response){
// What will be done, when player pressed 'Start'
PutPlayerInVehicle(playerid, cvehicle, 0);
SetVehiclePos(cvehicle, 1020.7713, -920.2669, 419.8624);
SetPlayerCheckpoint(playerid, 248.4739, -1329.2743, 52.6960, 5); // This will change the variable, so we can use it later on with OnPlayerEnterCheckpoint
Challange1 = CreateDynamicCP( 248.4739, -1329.2743, 52.6960, 5);
SendClientMessage(playerid, 0xFFFFFFFF, "You Started The Big Jump 1 Challange Get To The Checkpoint Quick");
}
else
{
//When aint responsed, e.g clicked ESC
return 1;
}
return 1;
}
COMMAND:challange1(playerid, params[]) { if( IsPlayerInRangeOfPoint( playerid, 3.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example) PutPlayerInVehicle(playerid, cvehicle, 0); SetVehiclePos(cvehicle, 1020.7713, -920.2669, 419.8624); SetPlayerCheckpoint(playerid, 248.4739, -1329.2743, 52.6960, 5); // This will change the variable, so we can use it later on with OnPlayerEnterCheckpoint Challange1 = CreateDynamicCP( 248.4739, -1329.2743, 52.6960, 5); SendClientMessage(playerid, 0xFFFFFFFF, "You Started The Big Jump 1 Challange Get To The Checkpoint Quick"); return 1; }
if(dialogid == 1) { PutPlayerInVehicle(playerid, cvehicle, 0); SetVehiclePos(cvehicle, 1020.7713, -920.2669, 419.8624); SetPlayerCheckpoint(playerid, 248.4739, -1329.2743, 52.6960, 5); // This will change the variable, so we can use it later on with OnPlayerEnterCheckpoint Challange1 = CreateDynamicCP( 248.4739, -1329.2743, 52.6960, 5); SendClientMessage(playerid, 0xFFFFFFFF, "You Started The Big Jump 1 Challange Get To The Checkpoint Quick"); return 1; }