function Plus()
res=GetPlayerResource(1,6);
if (res>[amount of money needed to hire]) then
AddObjectCreatures([script name of the town],[creature ID],[number of creatures]);
SetPlayerResource(1,6,res-[amount of money needed to hire]);
end else
MessageBox(GetMapDataPath()..[file name where it is written that there is not enough money, with extension and in quotes]);
end;
end;
Trigger(NEW_DAY_TRIGGER,"Plus");It should work.