02.01.2012, 18:24
Why do you use a timer, when you can use OnPlayerStateChange? Like this:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_MSGBOX, "Car Tax", "to drive this vehicle you have to pay $10000 for the Road Tax!", "Pay", "Don't Pay");
}
return 1;
}