26.12.2011, 14:38
Hello Can any one make it on normal msg
Its in Dailogbox i need it in normal message
Its in Dailogbox i need it in normal message
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid), dialog_string[128]; if(VehicleStatistics[vehicleid][vehicle_onsale] == 1) { format(dialog_string, sizeof(dialog_string), "Would you like to buy this %s costing $%d?", GetVehicleName(vehicleid), VehicleStatistics[vehicleid][vehicle_price]); ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Car Purchase", dialog_string, "Yes", "No"); return 1; } } return 1; }