09.09.2016, 14:10
I'm using INC files, store.inc and dialog.inc "DIALOG_FUELSTATION" is in dialog.inc, this is the place where i script in dialooges, aswell store ill just add dialooges right?
What i need is that it would pop up a dialog if i enter to checkpoint while im in vehicle.
I got this, and still it wont pop up a dialog.
What i need is that it would pop up a dialog if i enter to checkpoint while im in vehicle.
I got this, and still it wont pop up a dialog.
PHP код:
if(checkpointid == GM[fuelstationCP] && !found)
{
if(IsPlayerInAnyVehicle(playerid))
{
Player[playerid][enteredCP] = GetTickCount();
ShowPlayerDialog(playerid, DIALOG_FUELSTATION, DIALOG_STYLE_LIST, "Fuel station", "Repair vehicle"CHAT_YELLOW"", "Go", "Cancel");
found = true;
}
else
{
Server(playerid, "You must be inside vehicle to use this checkpoint");
}
}