26.06.2011, 18:44
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == rent1 || GetPlayerVehicleID(playerid) == rent2 )
{
ShowPlayerDialog(playerid,RENT,DIALOG_STYLE_MSGBOX,"Vehicle Rent","Do you want to rent this vehicle for $100?","Yes","No");
}
}
return 1;
}